mirror of
https://github.com/void-linux/void-packages.git
synced 2025-06-08 16:13:50 +02:00
mkinitcpio: improve consistency of relative paths in kernel hooks
This commit is contained in:
parent
ce3e0eb42e
commit
b8cdf2c27d
3 changed files with 4 additions and 6 deletions
|
@ -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 $?
|
||||||
|
|
|
@ -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 $?
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Add table
Reference in a new issue