Skip to content

Commit

Permalink
sys-kernel/installkernel: add support for USE=uki with USE=make-initrd
Browse files Browse the repository at this point in the history
Signed-off-by: Gabi Falk <[email protected]>
  • Loading branch information
gabifalk committed Dec 23, 2024
1 parent b5d892a commit b864153
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions sys-kernel/installkernel/installkernel-48-r1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ REQUIRED_USE="
?? ( efistub grub systemd-boot )
refind? ( !systemd-boot !grub )
systemd-boot? ( systemd )
make-initrd? ( !uki !ukify )
make-initrd? ( !ukify )
ukify? ( uki )
?? ( dracut ugrd make-initrd )
"
Expand Down Expand Up @@ -59,7 +59,16 @@ RDEPEND="
systemd? ( >=app-emulation/virt-firmware-24.2_p20240315-r2 )
!systemd? ( sys-boot/uefi-mkconfig )
)
make-initrd? ( sys-kernel/make-initrd )
make-initrd? (
sys-kernel/make-initrd
uki? (
>=sys-kernel/make-initrd-2.50.0
|| (
sys-apps/systemd[boot(-)]
sys-apps/systemd-utils[boot(-)]
)
)
)
grub? ( sys-boot/grub )
refind? ( sys-boot/refind )
systemd? (
Expand Down Expand Up @@ -158,14 +167,19 @@ src_install() {
echo "initrd_generator=ugrd" >> "${T}/install.conf" || die
elif use make-initrd; then
echo "initrd_generator=make-initrd" >> "${T}/install.conf" || die
if use uki; then
echo "uki_generator=make-initrd" >> "${T}/install.conf" || die
else
echo "uki_generator=none" >> "${T}/install.conf" || die
fi
else
echo "initrd_generator=none" >> "${T}/install.conf" || die
fi

if use ukify; then
echo "uki_generator=ukify" >> "${T}/install.conf" || die
else
if ! use dracut; then
if ! use dracut && ! use make-initrd; then
echo "uki_generator=none" >> "${T}/install.conf" || die
fi
fi
Expand Down

0 comments on commit b864153

Please sign in to comment.