base: hard depend on systemd, if system was started by systemd
authorHarald Hoyer <harald@redhat.com>
Tue, 30 Jul 2013 10:36:12 +0000 (12:36 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 30 Jul 2013 13:28:47 +0000 (15:28 +0200)
dracut.conf.d/fedora.conf.example
modules.d/99base/module-setup.sh

index c10dca3..afe6dee 100644 (file)
@@ -12,5 +12,4 @@ systemdutildir=/usr/lib/systemd
 systemdsystemunitdir=/usr/lib/systemd/system
 systemdsystemconfdir=/etc/systemd/system
 udevdir=/usr/lib/udev
-add_dracutmodules+=" systemd "
 hostonly="yes"
index b8f1ef3..0b7c1fe 100755 (executable)
@@ -8,6 +8,7 @@ check() {
 
 depends() {
     echo udev-rules
+    systemctl --system --no-pager &>/dev/null && echo systemd
     return 0
 }