dracut: prefer lz4 compression by default.

This commit is contained in:
Juan RP 2014-10-17 15:23:09 +02:00
parent 496c9bc561
commit 59357250c5
2 changed files with 10 additions and 4 deletions

View file

@ -11,5 +11,12 @@ if [ ! -x usr/bin/dracut ]; then
exit 0
fi
dracut -q --force boot/initramfs-${VERSION}.img ${VERSION}
if [ -x /bin/lz4 ]; then
args="--lz4"
elif [ -x /bin/xz ]; then
args="--xz"
elif [ -x /bin/bzip2 ]; then
args="--bzip2"
fi
dracut -q --force $args boot/initramfs-${VERSION}.img ${VERSION}
exit $?

View file

@ -1,11 +1,10 @@
# Template file for 'dracut'
pkgname=dracut
version=038
revision=1
revision=2
build_style=meta
hostmakedepends="libxslt docbook-xsl asciidoc"
makedepends="psmisc cpio xz"
depends="${makedepends}"
depends="psmisc cpio lz4"
conf_files="/etc/dracut.conf"
make_dirs="
/etc/dracut.conf.d 0755 root root