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"
|
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 $?
|
||||||
|
|
|
@ -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 $?
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in a new issue