From: Harald Hoyer Date: Wed, 31 Jul 2013 11:30:49 +0000 (+0200) Subject: systemd: use systemd in the initramfs, if installed on the system X-Git-Tag: 031~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dc7085ceebdb79b29c49d0297fbd2dafb75e47e4;p=platform%2Fupstream%2Fdracut.git systemd: use systemd in the initramfs, if installed on the system and systemd version is >= 198 --- diff --git a/modules.d/98systemd/module-setup.sh b/modules.d/98systemd/module-setup.sh index 761cda6a..8775fd23 100755 --- a/modules.d/98systemd/module-setup.sh +++ b/modules.d/98systemd/module-setup.sh @@ -5,6 +5,8 @@ check() { [[ $mount_needs ]] && return 1 if [[ -x $systemdutildir/systemd ]]; then + SYSTEMD_VERSION=$($systemdutildir/systemd --version | { read a b a; echo $b; }) + (( $SYSTEMD_VERSION >= 198 )) && return 0 return 255 fi diff --git a/modules.d/99base/module-setup.sh b/modules.d/99base/module-setup.sh index e7466df8..c9ee8388 100755 --- a/modules.d/99base/module-setup.sh +++ b/modules.d/99base/module-setup.sh @@ -8,7 +8,6 @@ check() { depends() { echo udev-rules - systemctl --system --no-pager &>/dev/null && echo systemd return 0 }