Skip to content

Commit

Permalink
Set up proper environment variables for kernel-install
Browse files Browse the repository at this point in the history
If we're not explicitly disabling kernel-install during package
manager invocations, let's set up the environment to make it do the
right thing instead.
  • Loading branch information
DaanDeMeyer committed Jul 29, 2024
1 parent 06ce2cb commit 8dc221f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions mkosi/installer/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,14 @@ def finalize_environment(cls, context: Context) -> dict[str, str]:
context.config.bootable != ConfigFeature.disabled
):
env["KERNEL_INSTALL_BYPASS"] = "1"
else:
env |= {
"BOOT_ROOT": "/boot",
# Required to make 90-loaderentry.install put the right paths into the bootloader entry.
"BOOT_MNT": "/boot",
# Hack to tell dracut to not create a hostonly initrd when it's invoked by kernel-install.
"hostonly_l": "no",
}

return env

Expand Down

0 comments on commit 8dc221f

Please sign in to comment.