diff options
author | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2024-01-09 07:40:21 +0100 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@gentoo.org> | 2024-01-09 07:41:54 +0100 |
commit | ce818c6629c7efe632e615793fa7050b7c7907c6 (patch) | |
tree | d28666c72fef6025702b3147df0e3e5533141dda /sys-kernel | |
parent | dev-python/sqlglot: Bump to 20.8.0 (diff) | |
download | gentoo-ce818c6629c7efe632e615793fa7050b7c7907c6.tar.gz gentoo-ce818c6629c7efe632e615793fa7050b7c7907c6.tar.bz2 gentoo-ce818c6629c7efe632e615793fa7050b7c7907c6.zip |
sys-kernel/installkernel-gentoo: add 11
fixes dracut/ukify gen on arches where the kernel image is in the
kernel source root
Closes: https://bugs.gentoo.org/921622
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>
Diffstat (limited to 'sys-kernel')
-rw-r--r-- | sys-kernel/installkernel-gentoo/Manifest | 1 | ||||
-rw-r--r-- | sys-kernel/installkernel-gentoo/installkernel-gentoo-11.ebuild | 56 |
2 files changed, 57 insertions, 0 deletions
diff --git a/sys-kernel/installkernel-gentoo/Manifest b/sys-kernel/installkernel-gentoo/Manifest index 306d1e35a9c7..9c4e17876d55 100644 --- a/sys-kernel/installkernel-gentoo/Manifest +++ b/sys-kernel/installkernel-gentoo/Manifest @@ -1 +1,2 @@ DIST installkernel-gentoo-10.tar.gz 4379 BLAKE2B 482309090305cf02fe38fb462b7f85a1cbe51b303b1828313210bd37f4f062380bf797bd786274eba53c36eb22e2b5204b1717ec0a50534eca0bc210957b25d0 SHA512 ca4bf98ddca82fdd17b933cbbd1c5604b70450e9c4eb2df288b1bdf31209b1cd6f1f83f6bfadee619a09e5ef01a14472321323cbe8a7b696656cbabfad82bc3a +DIST installkernel-gentoo-11.tar.gz 4427 BLAKE2B ef71c5e4bb928c60975812a905e2a05f4df98ae6ad8f8e515aee9528e2418a2cb0481828b8e68721f9d691192a25ab802488ee1cd4e796133442431bac1a3c0b SHA512 d39d3d9222507bafde288ccab49cc11310dfe5a480ca17b5580514ac6268d3cd4c1b6c0fbe61b7dcd9712876e50736d832c4991d64e1920a4f4df30ccbbfc9d6 diff --git a/sys-kernel/installkernel-gentoo/installkernel-gentoo-11.ebuild b/sys-kernel/installkernel-gentoo/installkernel-gentoo-11.ebuild new file mode 100644 index 000000000000..b3fc7f5fa826 --- /dev/null +++ b/sys-kernel/installkernel-gentoo/installkernel-gentoo-11.ebuild @@ -0,0 +1,56 @@ +# Copyright 2019-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x86-linux" +IUSE="+dracut grub uki ukify" + +RDEPEND=" + >=sys-apps/debianutils-4.9-r1 + !<sys-apps/debianutils-4.9-r1[installkernel(+)] + !sys-kernel/installkernel-systemd +" + +src_install() { + into / + dosbin installkernel + doman installkernel.8 + keepdir /etc/kernel/postinst.d + keepdir /etc/kernel/preinst.d + + if use dracut; then + exeinto /etc/kernel/preinst.d + doexe hooks/50-dracut.install + fi + + if use grub; then + exeinto /etc/kernel/postinst.d + doexe hooks/91-grub-mkconfig.install + fi + + if use uki; then + exeinto /etc/kernel/postinst.d + doexe hooks/90-uki-copy.install + fi + + if use ukify; then + exeinto /etc/kernel/preinst.d + doexe hooks/60-ukify.install + fi +} + +pkg_postinst() { + if has 1 ${REPLACING_VERSIONS}; then + ewarn "In v2, the initramfs filename has changed to initramfs*.img, to match" + ewarn "the default names used by dracut and genkernel-4. If your bootloader" + ewarn "config uses the verbatim filename, please update it." + fi +} |