From ff126c26e796d11a576f6fad1c221144b4af273a Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 24 Jun 2015 11:49:00 +0200 Subject: [PATCH] dracut: do not force any specific compression in the kernel hook. The admin may set its preferred compression format via dracut.conf. --- srcpkgs/dracut/files/kernel-hook-postinst | 9 ++------- srcpkgs/dracut/template | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/srcpkgs/dracut/files/kernel-hook-postinst b/srcpkgs/dracut/files/kernel-hook-postinst index f82e0a8b4bb..a9d265b6ed6 100644 --- a/srcpkgs/dracut/files/kernel-hook-postinst +++ b/srcpkgs/dracut/files/kernel-hook-postinst @@ -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 $? diff --git a/srcpkgs/dracut/template b/srcpkgs/dracut/template index dcf6e5b5a0f..49486d0d687 100644 --- a/srcpkgs/dracut/template +++ b/srcpkgs/dracut/template @@ -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"