summaryrefslogtreecommitdiff
path: root/modules.d
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2013-02-08 14:17:35 +0100
committerHarald Hoyer <harald@redhat.com>2013-02-11 11:49:19 +0100
commitfbdfa57746933d24693ebfcb972f979b34b4401e (patch)
treeed8f448bc72c55b5f80c93137b9b5cd2c96341dd /modules.d
parent6b095274fb935ffb7639d1ea7e51f9bd0f487726 (diff)
downloaddracut-fbdfa57746933d24693ebfcb972f979b34b4401e.tar.gz
dracut-fbdfa57746933d24693ebfcb972f979b34b4401e.tar.bz2
dracut-fbdfa57746933d24693ebfcb972f979b34b4401e.zip
systemd/dracut-pre-udev.service: load service on demand
Diffstat (limited to 'modules.d')
-rw-r--r--modules.d/98systemd/dracut-pre-udev.service2
1 files changed, 2 insertions, 0 deletions
diff --git a/modules.d/98systemd/dracut-pre-udev.service b/modules.d/98systemd/dracut-pre-udev.service
index 88a8da13..ee2c2e1b 100644
--- a/modules.d/98systemd/dracut-pre-udev.service
+++ b/modules.d/98systemd/dracut-pre-udev.service
@@ -15,6 +15,8 @@ Before=systemd-udevd.service dracut-pre-trigger.service
After=dracut-cmdline.service
Wants=dracut-cmdline.service
ConditionPathExists=/etc/initrd-release
+ConditionDirectoryNotEmpty=|/lib/dracut/hooks/pre-udev
+ConditionKernelCommandLine=|rd.break=pre-udev
[Service]
Type=oneshot