]> git.ipfire.org Git - thirdparty/mkosi.git/commitdiff
Do not generate random seed when running bootctl install
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 19 Aug 2024 13:15:40 +0000 (15:15 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 19 Aug 2024 14:14:08 +0000 (16:14 +0200)
mkosi/__init__.py

index 45f9aef4b70a568f4726689f8d8470052a7968f5..3400a1818f34341f775e90616b301b5576f6b228 100644 (file)
@@ -1112,6 +1112,8 @@ def install_systemd_boot(context: Context) -> None:
             env={"SYSTEMD_ESP_PATH": "/efi", "SYSTEMD_XBOOTLDR_PATH": "/boot"},
             sandbox=context.sandbox(binary="bootctl", mounts=[Mount(context.root, "/buildroot")]),
         )
+        # TODO: Use --random-seed=no when we can depend on systemd 256.
+        Path(context.root / "efi/loader/random-seed").unlink(missing_ok=True)
 
         if context.config.shim_bootloader != ShimBootloader.none:
             shutil.copy2(