summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-07-30 12:36:12 +0200
committerHarald Hoyer <harald@redhat.com>2013-07-30 15:28:47 +0200
commit71bb2ecd79ca72ca6a82a43b37c3d34889c8099e (patch)
tree0b4042de71e27ae5cf2c3642775596472146fca4
parent6e0348f33b351dc7b2b920a63bbeb2a9340e600e (diff)
downloaddracut-71bb2ecd79ca72ca6a82a43b37c3d34889c8099e.tar.gz
dracut-71bb2ecd79ca72ca6a82a43b37c3d34889c8099e.tar.bz2
dracut-71bb2ecd79ca72ca6a82a43b37c3d34889c8099e.zip
base: hard depend on systemd, if system was started by systemd
-rw-r--r--dracut.conf.d/fedora.conf.example1
-rwxr-xr-xmodules.d/99base/module-setup.sh1
2 files changed, 1 insertions, 1 deletions
diff --git a/dracut.conf.d/fedora.conf.example b/dracut.conf.d/fedora.conf.example
index c10dca37..afe6dee2 100644
--- a/dracut.conf.d/fedora.conf.example
+++ b/dracut.conf.d/fedora.conf.example
@@ -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"
diff --git a/modules.d/99base/module-setup.sh b/modules.d/99base/module-setup.sh
index b8f1ef36..0b7c1fed 100755
--- a/modules.d/99base/module-setup.sh
+++ b/modules.d/99base/module-setup.sh
@@ -8,6 +8,7 @@ check() {
depends() {
echo udev-rules
+ systemctl --system --no-pager &>/dev/null && echo systemd
return 0
}