dracut: needs systemd>=198; add patch to fix a broken check.

This commit is contained in:
Juan RP 2013-03-08 11:55:55 +01:00
parent 58c9b1837d
commit 3f2859b520
2 changed files with 15 additions and 2 deletions

View file

@ -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

View file

@ -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"