]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
livenet/module-setup.sh: only include systemd generator if systemd included
authorHarald Hoyer <harald@redhat.com>
Mon, 14 Dec 2015 10:16:42 +0000 (11:16 +0100)
committerHarald Hoyer <harald@redhat.com>
Mon, 14 Dec 2015 14:19:53 +0000 (15:19 +0100)
modules.d/90livenet/module-setup.sh

index 3a8d4ba8d4eb9e5e5d63038349c2279dac8b274e..11738b8f44a6747fd650414cd5d628c75074852e 100755 (executable)
@@ -17,6 +17,8 @@ install() {
     inst_hook cmdline 29 "$moddir/parse-livenet.sh"
     inst_hook initqueue/online 95 "$moddir/fetch-liveupdate.sh"
     inst_script "$moddir/livenetroot.sh" "/sbin/livenetroot"
-    inst_script "$moddir/livenet-generator.sh" $systemdutildir/system-generators/dracut-livenet-generator
+    if dracut_module_included "systemd-initrd"; then
+        inst_script "$moddir/livenet-generator.sh" $systemdutildir/system-generators/dracut-livenet-generator
+    fi
     dracut_need_initqueue
 }