dracut: use relative paths in the kernel hooks.

This commit is contained in:
Juan RP 2012-11-19 22:10:33 +01:00
parent bdab5e18ed
commit 0370394d47
3 changed files with 5 additions and 5 deletions

View file

@ -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 $?

View file

@ -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 $?

View file

@ -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"