diff --git a/srcpkgs/mkinitcpio/files/kernel-hook-postinst b/srcpkgs/mkinitcpio/files/kernel-hook-postinst index 08bf4c0c951..e051aefea70 100644 --- a/srcpkgs/mkinitcpio/files/kernel-hook-postinst +++ b/srcpkgs/mkinitcpio/files/kernel-hook-postinst @@ -13,4 +13,3 @@ fi umask 0077 usr/bin/mkinitcpio -g boot/initramfs-${VERSION}.img -k ${VERSION} -exit $? diff --git a/srcpkgs/mkinitcpio/files/kernel-hook-postrm b/srcpkgs/mkinitcpio/files/kernel-hook-postrm index 028fd097b87..2db7c51954f 100644 --- a/srcpkgs/mkinitcpio/files/kernel-hook-postrm +++ b/srcpkgs/mkinitcpio/files/kernel-hook-postrm @@ -8,4 +8,3 @@ PKGNAME="$1" VERSION="$2" rm -f boot/initramfs-${VERSION}.img -exit $? diff --git a/srcpkgs/mkinitcpio/template b/srcpkgs/mkinitcpio/template index ab00be349a2..c9a6b62f26c 100644 --- a/srcpkgs/mkinitcpio/template +++ b/srcpkgs/mkinitcpio/template @@ -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() {