dracut: use relative paths in the kernel hooks.
This commit is contained in:
parent
bdab5e18ed
commit
0370394d47
3 changed files with 5 additions and 5 deletions
|
@ -7,9 +7,9 @@
|
|||
PKGNAME="$1"
|
||||
VERSION="$2"
|
||||
|
||||
if [ ! -x /usr/bin/dracut ]; then
|
||||
if [ ! -x usr/bin/dracut ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
dracut -q --xz --force /boot/initramfs-${VERSION}.img ${VERSION}
|
||||
dracut -q --xz --force boot/initramfs-${VERSION}.img ${VERSION}
|
||||
exit $?
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
PKGNAME="$1"
|
||||
VERSION="$2"
|
||||
|
||||
if [ -f /boot/initramfs-${VERSION}.img ]; then
|
||||
rm -f /boot/initramfs-${VERSION}.img
|
||||
if [ -f boot/initramfs-${VERSION}.img ]; then
|
||||
rm -f boot/initramfs-${VERSION}.img
|
||||
fi
|
||||
exit $?
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'dracut'
|
||||
pkgname=dracut
|
||||
version=024
|
||||
revision=2
|
||||
revision=3
|
||||
build_style=gnu-makefile
|
||||
make_build_args="sysconfdir=/etc systemdsystemunitdir=/usr/lib/systemd/system"
|
||||
make_install_args="sysconfdir=/etc systemdsystemunitdir=/usr/lib/systemd/system"
|
||||
|
|
Loading…
Reference in a new issue