]> git.ipfire.org Git - thirdparty/dracut.git/commit
feat(install.d): allow using dracut in combination with ukify
authorAndrew Ammerlaan <andrewammerlaan@gentoo.org>
Sun, 20 Aug 2023 10:19:10 +0000 (12:19 +0200)
committerLaszlo Gombos <laszlo.gombos@gmail.com>
Tue, 22 Aug 2023 12:00:29 +0000 (08:00 -0400)
commit166456331d55cdc23946c11315dc2c88aab15911
treef8d0944239e54e09078b7798030f13a6459c0c22
parent6f78e5de23769b6c1d656b44bf3c7eb97ba73518
feat(install.d): allow using dracut in combination with ukify

This can be simply accomplished with the KERNEL_INSTALL_INITRD_GENERATOR
and KERNEL_INSTALL_UKI_GENERATOR variables. `60-ukify.install` looks for
the initrd in the KERNEL_INSTALL_STAGING_AREA and then takes care of building
the uki.

This change makes it possible to use a configuration like this:
/etc/kernel/install.conf
layout=uki
uki_generator=ukify
initrd_generator=dracut

Without this change this configuration will fail since dracut would also
generate an uki instead of initrd, which will cause a problem in
`60-ukify.install` since it can't find an initrd to use.

Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
install.d/50-dracut.install