diff --git a/srcpkgs/dracut/patches/fix_systemd_version_check.patch b/srcpkgs/dracut/patches/fix_systemd_version_check.patch new file mode 100644 index 00000000000..46dbd1baf77 --- /dev/null +++ b/srcpkgs/dracut/patches/fix_systemd_version_check.patch @@ -0,0 +1,13 @@ +systemd binary is in ${systemdutildir} by default. + +--- modules.d/98systemd/module-setup.sh.orig 2013-03-08 11:52:43.941344749 +0100 ++++ modules.d/98systemd/module-setup.sh 2013-03-08 11:52:56.437417847 +0100 +@@ -17,7 +17,7 @@ depends() { + + install() { + +- SYSTEMD_VERSION=$(systemd --version | { read a b a; echo $b; }) ++ SYSTEMD_VERSION=$(${systemdutildir}/systemd --version | { read a b a; echo $b; }) + if (( $SYSTEMD_VERSION < 198 )); then + dfatal "systemd version $SYSTEMD_VERSION is too low. Need at least version 198." + exit 1 diff --git a/srcpkgs/dracut/template b/srcpkgs/dracut/template index f552b61a9f6..528b8cf4e14 100644 --- a/srcpkgs/dracut/template +++ b/srcpkgs/dracut/template @@ -1,11 +1,11 @@ # Template file for 'dracut' pkgname=dracut version=026 -revision=1 +revision=2 build_style=gnu-makefile make_build_args="sysconfdir=/etc systemdsystemunitdir=/usr/lib/systemd/system" make_install_args="sysconfdir=/etc systemdsystemunitdir=/usr/lib/systemd/system" -depends="psmisc>=22.14_2 cpio xz" +depends="psmisc>=22.14_2 cpio xz systemd>=198" makedepends="libxslt docbook-xsl asciidoc" conf_files="/etc/dracut.conf" make_dirs="/etc/dracut.conf.d 0755 root root"