]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
systemd/module-setup.sh: call systemd in private dir for version
authorHarald Hoyer <harald@redhat.com>
Fri, 8 Mar 2013 10:50:03 +0000 (11:50 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 8 Mar 2013 10:50:03 +0000 (11:50 +0100)
modules.d/98systemd/module-setup.sh

index 3ce1705e1bbfecabc70d5a1e0c503c1908ba7fce..32d4be585fcdb292e004b30f10935cd7edf7e519 100755 (executable)
@@ -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