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"
|
PKGNAME="$1"
|
||||||
VERSION="$2"
|
VERSION="$2"
|
||||||
|
|
||||||
if [ ! -x usr/bin/dracut ]; then
|
if [ ! -x bin/dracut ]; then
|
||||||
exit 0
|
exit 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -x /bin/lz4 ]; then
|
dracut -q --force boot/initramfs-${VERSION}.img ${VERSION}
|
||||||
args="--lz4"
|
|
||||||
elif [ -x /bin/xz ]; then
|
|
||||||
args="--xz"
|
|
||||||
fi
|
|
||||||
dracut -q --force $args boot/initramfs-${VERSION}.img ${VERSION}
|
|
||||||
exit $?
|
exit $?
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'dracut'
|
# Template file for 'dracut'
|
||||||
pkgname=dracut
|
pkgname=dracut
|
||||||
version=043
|
version=043
|
||||||
revision=1
|
revision=2
|
||||||
build_style=configure
|
build_style=configure
|
||||||
configure_args="--prefix=/usr --sysconfdir=/etc"
|
configure_args="--prefix=/usr --sysconfdir=/etc"
|
||||||
hostmakedepends="libxslt docbook-xsl asciidoc"
|
hostmakedepends="libxslt docbook-xsl asciidoc"
|
||||||
|
|
Loading…
Reference in New Issue