mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-24 15:11:19 +02:00
sys-kernel/installkernel-gentoo: Sync with Gentoo
It's from Gentoo commit 0592675bb383a9ce5980762bc0f1422a164e2af7.
This commit is contained in:
parent
1e0137b431
commit
1fa219105a
@ -1 +1,2 @@
|
||||
DIST installkernel-gentoo-10.tar.gz 4379 BLAKE2B 482309090305cf02fe38fb462b7f85a1cbe51b303b1828313210bd37f4f062380bf797bd786274eba53c36eb22e2b5204b1717ec0a50534eca0bc210957b25d0 SHA512 ca4bf98ddca82fdd17b933cbbd1c5604b70450e9c4eb2df288b1bdf31209b1cd6f1f83f6bfadee619a09e5ef01a14472321323cbe8a7b696656cbabfad82bc3a
|
||||
DIST installkernel-gentoo-7.tar.gz 2962 BLAKE2B 675a1e33470ef10a38cf880591cc78ce3bf92dad20feaea740cee7cdad657b9a9b30f53ff8078b610ed09e7ec306dc3b565856c92755e3aad2a5ef387df0522b SHA512 9944b20884a0fb252dced70d33963f24af221ffa41b99f14f5f3569c155c48a0e0762fc70ca103723cac35740f94fb2120712c7ba41a442e9f971251365a194e
|
||||
|
@ -0,0 +1,56 @@
|
||||
# Copyright 2019-2023 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
|
||||
}
|
@ -6,9 +6,13 @@
|
||||
<name>Distribution Kernel Project</name>
|
||||
</maintainer>
|
||||
<use>
|
||||
<flag name="dracut">Generate an initrd or UKI on each kernel installation</flag>
|
||||
<flag name="grub">Re-generate grub.cfg on each kernel installation</flag>
|
||||
<flag name="uki">Install UKIs to ESP/EFI/Linux for EFI stub booting and/or bootloaders with support for auto-discovering UKIs</flag>
|
||||
<flag name="ukify">Build an UKI with systemd's ukify on each kernel installation</flag>
|
||||
</use>
|
||||
<upstream>
|
||||
<remote-id type="github">projg2/installkernel-gentoo</remote-id>
|
||||
</upstream>
|
||||
<stabilize-allarches/>
|
||||
</pkgmetadata>
|
||||
|
Loading…
x
Reference in New Issue
Block a user