Skip to content

Commit

Permalink
Nudge kernel-install towards using the BLS layout
Browse files Browse the repository at this point in the history
  • Loading branch information
DaanDeMeyer committed Jul 29, 2024
1 parent 63e2b31 commit 6a46c7e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mkosi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(parents=True, 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)
Expand Down

0 comments on commit 6a46c7e

Please sign in to comment.