]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
vmspawn: Only set --grow-image= if RuntimeSize= is specified
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 30 Oct 2025 22:32:17 +0000 (23:32 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Tue, 9 Dec 2025 10:24:19 +0000 (11:24 +0100)
mkosi/vmspawn.py

index abdf6979e99a5bd8a14e128a471105a40225a6be..edb86fd7dc8c979917543184e624d4ed484c9507 100644 (file)
@@ -58,9 +58,11 @@ def run_vmspawn(args: Args, config: Config) -> None:
         "--secure-boot", yes_no(config.secure_boot),
         "--register", yes_no(finalize_register(config)),
         "--console", str(config.console),
-        "--grow-image", str(config.runtime_size),
     ]  # fmt: skip
 
+    if config.runtime_size:
+        cmdline += ["--grow-image", str(config.runtime_size)]
+
     if config.bind_user:
         cmdline += ["--bind-user", getpass.getuser()]