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" PKGNAME="$1"
VERSION="$2" VERSION="$2"
if [ ! -x bin/mkinitcpio ]; then if [ ! -x usr/bin/mkinitcpio ]; then
exit 0 exit 0
fi fi
mkinitcpio -g boot/initramfs-${VERSION}.img -k ${VERSION} usr/bin/mkinitcpio -g boot/initramfs-${VERSION}.img -k ${VERSION}
exit $? exit $?

View file

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

View file

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