sys-kernel/installkernel: fix S after rename

and set initrd/uki generators to none by default if unset, this
change makes USE=generic-uki work automatically. While of course
still retaining the possibility of manually overriding the config file

Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
This commit is contained in:
Andrew Ammerlaan
2024-01-12 12:45:29 +01:00
parent a3f15f2dc1
commit ec00b7c50c
2 changed files with 10 additions and 0 deletions
@@ -7,6 +7,7 @@ DESCRIPTION="Gentoo fork of installkernel script from debianutils"
HOMEPAGE="https://github.com/projg2/installkernel-gentoo"
SRC_URI="https://github.com/projg2/installkernel-gentoo/archive/v${PV}.tar.gz
-> ${P}.tar.gz"
S="${WORKDIR}/${PN}-gentoo-${PV}"
LICENSE="GPL-2+"
SLOT="0"
@@ -7,6 +7,7 @@ DESCRIPTION="Gentoo fork of installkernel script from debianutils"
HOMEPAGE="https://github.com/projg2/installkernel-gentoo"
SRC_URI="https://github.com/projg2/installkernel-gentoo/archive/v${PV}.tar.gz
-> ${P}.tar.gz"
S="${WORKDIR}/${PN}-gentoo-${PV}"
LICENSE="GPL-2+"
SLOT="0"
@@ -61,14 +62,22 @@ src_install() {
else
echo "layout=bls" >> "${T}/install.conf" || die
fi
if use dracut; then
echo "initrd_generator=dracut" >> "${T}/install.conf" || die
if ! use ukify; then
echo "uki_generator=dracut" >> "${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
echo "uki_generator=none" >> "${T}/install.conf" || die
fi
fi
if [[ -s "${T}/install.conf" ]]; then