mkinitcpio: improve consistency of relative paths in kernel hooks

This commit is contained in:
Andrew J. Hesford 2020-08-05 12:13:09 -04:00
parent ce3e0eb42e
commit b8cdf2c27d
3 changed files with 4 additions and 6 deletions

View file

@ -7,9 +7,9 @@
PKGNAME="$1"
VERSION="$2"
if [ ! -x bin/mkinitcpio ]; then
if [ ! -x usr/bin/mkinitcpio ]; then
exit 0
fi
mkinitcpio -g boot/initramfs-${VERSION}.img -k ${VERSION}
usr/bin/mkinitcpio -g boot/initramfs-${VERSION}.img -k ${VERSION}
exit $?

View file

@ -7,7 +7,5 @@
PKGNAME="$1"
VERSION="$2"
if [ -f /boot/initramfs-${VERSION}.img ]; then
rm -f /boot/initramfs-${VERSION}.img
fi
rm -f boot/initramfs-${VERSION}.img
exit $?

View file

@ -1,7 +1,7 @@
# Template file for 'mkinitcpio'
pkgname=mkinitcpio
version=27
revision=1
revision=2
archs=noarch
build_style=gnu-makefile
depends="busybox-static bsdtar bash"