[elbe-devel] [PATCH] elbepack: propagate initvmdir from "initvm create" to "initvm start"

Thomas Weißschuh thomas.weissschuh at linutronix.de
Wed Feb 14 16:01:43 CET 2024


Since commit cf01a955947c ("init: attach open filedescriptors to init domain")
"initvm start" uses the initvmdir.
Make sure it is set correct when called from "initvm create".

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/initvmaction.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/initvmaction.py b/elbepack/initvmaction.py
index 06fa31c3b324..3a73b110d09d 100644
--- a/elbepack/initvmaction.py
+++ b/elbepack/initvmaction.py
@@ -637,7 +637,7 @@ class CreateAction(InitVMAction):
             sys.exit(147)
 
         try:
-            system(f'{sys.executable} {elbe_exe} initvm start')
+            system(f'{sys.executable} {elbe_exe} initvm --directory "{initvmdir}" start')
         except CommandError:
             print('Starting the initvm Failed', file=sys.stderr)
             print('Giving up', file=sys.stderr)
-- 
2.43.1



More information about the elbe-devel mailing list