dracut: prefer lz4 compression by default.
This commit is contained in:
parent
496c9bc561
commit
59357250c5
2 changed files with 10 additions and 4 deletions
|
@ -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 $?
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue