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

View file

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

View file

@ -1,7 +1,7 @@
# Template file for 'dracut' # Template file for 'dracut'
pkgname=dracut pkgname=dracut
version=024 version=024
revision=2 revision=3
build_style=gnu-makefile build_style=gnu-makefile
make_build_args="sysconfdir=/etc systemdsystemunitdir=/usr/lib/systemd/system" make_build_args="sysconfdir=/etc systemdsystemunitdir=/usr/lib/systemd/system"
make_install_args="sysconfdir=/etc systemdsystemunitdir=/usr/lib/systemd/system" make_install_args="sysconfdir=/etc systemdsystemunitdir=/usr/lib/systemd/system"