From: Daan De Meyer Date: Mon, 29 Jul 2024 13:38:49 +0000 (+0200) Subject: Set up proper environment variables for kernel-install X-Git-Tag: v25~380^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8dc221fc106db7ae6d40a261aa7c75cc1a828c86;p=thirdparty%2Fmkosi.git Set up proper environment variables for kernel-install 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. --- diff --git a/mkosi/installer/__init__.py b/mkosi/installer/__init__.py index 0f28d3e73..7c0429f7c 100644 --- a/mkosi/installer/__init__.py +++ b/mkosi/installer/__init__.py @@ -47,6 +47,14 @@ class PackageManager: 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