[Devel] [PATCH RHEL8 COMMIT] ve: Explain the need for /proc/bc directory

Konstantin Khorenko khorenko at virtuozzo.com
Wed Apr 7 19:27:23 MSK 2021


The commit is pushed to "branch-rh8-4.18.0-240.1.1.vz8.5.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git
after rh8-4.18.0-240.1.1.vz8.5.11
------>
commit df76c2a422abe17a7701b134bdf8e27289c89644
Author: Konstantin Khorenko <khorenko at virtuozzo.com>
Date:   Wed Apr 7 19:23:41 2021 +0300

    ve: Explain the need for /proc/bc directory
    
    Can't easily drop "/proc/bc" directory: without dropping /proc/vz dir
    systemd considers it's in a Container and Node does not boot.
    
    To_merge: b82b22f661b3 ("ve: Add veowner")
    https://jira.sw.ru/browse/PSBM-127913
    
    Signed-off-by: Konstantin Khorenko <khorenko at virtuozzo.com>
---
 kernel/ve/veowner.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/kernel/ve/veowner.c b/kernel/ve/veowner.c
index d7b3b94bd3e6..4a90464ef97e 100644
--- a/kernel/ve/veowner.c
+++ b/kernel/ve/veowner.c
@@ -27,6 +27,11 @@ static void prepare_proc(void)
 	if (!proc_vz_dir)
 		panic("Can't create /proc/vz dir");
 
+	/*
+	 * Can't easily drop this: without dropping /proc/vz dir
+	 * systemd considers it's in a Container and Node does not boot.
+	 * https://jira.sw.ru/browse/PSBM-127913
+	 */
 	bc_proc_root = proc_mkdir_mode("bc", 0, NULL);
         if (!bc_proc_root)
                 panic("Can't create /proc/bc entry");


More information about the Devel mailing list