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:
parent
4d5c710543
commit
ff126c26e7
|
@ -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 $?
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue