dracut: do not force any specific compression in the kernel hook.

The admin may set its preferred compression format via dracut.conf.
This commit is contained in:
Juan RP 2015-06-24 11:49:00 +02:00
parent 4d5c710543
commit ff126c26e7
2 changed files with 3 additions and 8 deletions

View File

@ -7,14 +7,9 @@
PKGNAME="$1"
VERSION="$2"
if [ ! -x usr/bin/dracut ]; then
if [ ! -x bin/dracut ]; then
exit 0
fi
if [ -x /bin/lz4 ]; then
args="--lz4"
elif [ -x /bin/xz ]; then
args="--xz"
fi
dracut -q --force $args boot/initramfs-${VERSION}.img ${VERSION}
dracut -q --force boot/initramfs-${VERSION}.img ${VERSION}
exit $?

View File

@ -1,7 +1,7 @@
# Template file for 'dracut'
pkgname=dracut
version=043
revision=1
revision=2
build_style=configure
configure_args="--prefix=/usr --sysconfdir=/etc"
hostmakedepends="libxslt docbook-xsl asciidoc"