From: Daan De Meyer Date: Mon, 29 Jul 2024 15:06:06 +0000 (+0200) Subject: Nudge kernel-install towards using the BLS layout X-Git-Tag: v25~380^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2924%2Fhead;p=thirdparty%2Fmkosi.git Nudge kernel-install towards using the BLS layout --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 045885316..90dbfc8c3 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -162,6 +162,14 @@ def install_distribution(context: Context) -> None: # should not be read from or written to. with umask(~0o500): (context.root / "efi").mkdir(exist_ok=True) + (context.root / "boot").mkdir(exist_ok=True) + + # Ensure /boot/loader/entries.srel exists and has type1 written to it to nudge kernel-install towards using + # the boot loader specification layout. + with umask(~0o700): + (context.root / "boot/loader").mkdir(exist_ok=True) + with umask(~0o600): + (context.root / "boot/loader/entries.srel").write_text("type1\n") if context.config.packages: context.config.distribution.install_packages(context, context.config.packages)