]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Set repart definitions directory to / if we want to ignore system definitions
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 19 Sep 2024 18:16:20 +0000 (20:16 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 19 Sep 2024 18:17:13 +0000 (20:17 +0200)
Setting to empty string resets the argument list and as such doesn't
work.

mkosi/qemu.py

index fceb2fd35c27b85dc7ab76ac614c8328476f2be7..39671d42f97e6f7d7a44574f1355a334789c497e 100644 (file)
@@ -691,7 +691,7 @@ def apply_runtime_size(config: Config, image: Path) -> None:
     run(
         [
             "systemd-repart",
-            "--definitions", "",
+            "--definitions=/",
             "--no-pager",
             # To use qemu's cache.direct option, the drive size has to be a multiple of the page size.
             f"--size={round_up(config.runtime_size, resource.getpagesize())}",
@@ -1007,7 +1007,7 @@ def run_qemu(args: Args, config: Config) -> None:
             run(
                 [
                     "systemd-repart",
-                    "--definitions", "",
+                    "--definitions=/",
                     "--no-pager",
                     "--pretty=no",
                     "--offline=yes",