]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Set $SYSTEMD_XBOOTLDR_PATH when invoking bootctl install
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 10 Mar 2024 15:31:03 +0000 (16:31 +0100)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 10 Mar 2024 15:31:03 +0000 (16:31 +0100)
This makes sure various directories are created in /boot instead
of /efi.

mkosi/__init__.py

index efdfda4e98787a7668b515aa6a5c58bd2a02224b..f78eb52de78e17cacb4ec29add32f3ec0cd9cc53 100644 (file)
@@ -937,7 +937,7 @@ def install_systemd_boot(context: Context) -> None:
     with complete_step("Installing systemd-boot…"):
         run(
             ["bootctl", "install", "--root", context.root, "--all-architectures", "--no-variables"],
-            env={"SYSTEMD_ESP_PATH": "/efi"},
+            env={"SYSTEMD_ESP_PATH": "/efi", "SYSTEMD_XBOOTLDR_PATH": "/boot"},
             sandbox=context.sandbox(options=["--bind", context.root, context.root]),
         )