From: Harald Hoyer Date: Mon, 14 Dec 2015 10:16:42 +0000 (+0100) Subject: livenet/module-setup.sh: only include systemd generator if systemd included X-Git-Tag: 045~213 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=efd3a6db74ebcc453e216966a5914b63e2b29aff;p=thirdparty%2Fdracut.git livenet/module-setup.sh: only include systemd generator if systemd included --- diff --git a/modules.d/90livenet/module-setup.sh b/modules.d/90livenet/module-setup.sh index 3a8d4ba8d..11738b8f4 100755 --- a/modules.d/90livenet/module-setup.sh +++ b/modules.d/90livenet/module-setup.sh @@ -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 }