livenet/module-setup.sh: only include systemd generator if systemd included

master
Harald Hoyer 2015-12-14 11:16:42 +01:00
parent 4bcd41389c
commit efd3a6db74
1 changed files with 3 additions and 1 deletions

View File

@ -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
}