mkinitcpio: use alternatives for kernel hooks
This commit is contained in:
parent
f5bdafe7ee
commit
2c8365d0cb
|
@ -13,4 +13,3 @@ fi
|
|||
|
||||
umask 0077
|
||||
usr/bin/mkinitcpio -g boot/initramfs-${VERSION}.img -k ${VERSION}
|
||||
exit $?
|
||||
|
|
|
@ -8,4 +8,3 @@ PKGNAME="$1"
|
|||
VERSION="$2"
|
||||
|
||||
rm -f boot/initramfs-${VERSION}.img
|
||||
exit $?
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'mkinitcpio'
|
||||
pkgname=mkinitcpio
|
||||
version=31
|
||||
revision=2
|
||||
revision=3
|
||||
build_style=gnu-makefile
|
||||
hostmakedepends="asciidoc"
|
||||
depends="busybox-static bsdtar bash"
|
||||
|
@ -13,6 +13,10 @@ homepage="https://git.archlinux.org/mkinitcpio.git"
|
|||
distfiles="https://sources.archlinux.org/other/${pkgname}/${pkgname}-${version}.tar.gz"
|
||||
checksum=8f2811250b852ab78375bf90e1a7430daa132e57e128b0f6eaadddd9b27bbc63
|
||||
conf_files="/etc/mkinitcpio.conf"
|
||||
alternatives="
|
||||
initramfs:/etc/kernel.d/post-install/20-initramfs:/usr/libexec/mkinitcpio/kernel-hook-postinst
|
||||
initramfs:/etc/kernel.d/post-remove/20-initramfs:/usr/libexec/mkinitcpio/kernel-hook-postrm
|
||||
"
|
||||
replaces="mkinitcpio-udev>=0"
|
||||
|
||||
pre_check() {
|
||||
|
@ -38,8 +42,8 @@ post_install() {
|
|||
|
||||
ln -s /usr/bin/busybox.static $DESTDIR/usr/lib/initcpio/busybox
|
||||
|
||||
vinstall ${FILESDIR}/kernel-hook-postinst 755 etc/kernel.d/post-install 20-mkinitcpio
|
||||
vinstall ${FILESDIR}/kernel-hook-postrm 755 etc/kernel.d/post-remove 20-mkinitcpio
|
||||
vinstall ${FILESDIR}/kernel-hook-postinst 755 usr/libexec/mkinitcpio
|
||||
vinstall ${FILESDIR}/kernel-hook-postrm 755 usr/libexec/mkinitcpio
|
||||
}
|
||||
|
||||
mkinitcpio-lvm2_package() {
|
||||
|
|
Loading…
Reference in New Issue