Blame 0008-livenet-module-setup.sh-only-include-systemd-generat.patch
|
Harald Hoyer |
7ba020 |
From efd3a6db74ebcc453e216966a5914b63e2b29aff Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
7ba020 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
7ba020 |
Date: Mon, 14 Dec 2015 11:16:42 +0100
|
|
Harald Hoyer |
7ba020 |
Subject: [PATCH] livenet/module-setup.sh: only include systemd generator if
|
|
Harald Hoyer |
7ba020 |
systemd included
|
|
Harald Hoyer |
7ba020 |
|
|
Harald Hoyer |
7ba020 |
---
|
|
Harald Hoyer |
7ba020 |
modules.d/90livenet/module-setup.sh | 4 +++-
|
|
Harald Hoyer |
7ba020 |
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
Harald Hoyer |
7ba020 |
|
|
Harald Hoyer |
7ba020 |
diff --git a/modules.d/90livenet/module-setup.sh b/modules.d/90livenet/module-setup.sh
|
|
Harald Hoyer |
7ba020 |
index 3a8d4ba..11738b8 100755
|
|
Harald Hoyer |
7ba020 |
--- a/modules.d/90livenet/module-setup.sh
|
|
Harald Hoyer |
7ba020 |
+++ b/modules.d/90livenet/module-setup.sh
|
|
Harald Hoyer |
7ba020 |
@@ -17,6 +17,8 @@ install() {
|
|
Harald Hoyer |
7ba020 |
inst_hook cmdline 29 "$moddir/parse-livenet.sh"
|
|
Harald Hoyer |
7ba020 |
inst_hook initqueue/online 95 "$moddir/fetch-liveupdate.sh"
|
|
Harald Hoyer |
7ba020 |
inst_script "$moddir/livenetroot.sh" "/sbin/livenetroot"
|
|
Harald Hoyer |
7ba020 |
- inst_script "$moddir/livenet-generator.sh" $systemdutildir/system-generators/dracut-livenet-generator
|
|
Harald Hoyer |
7ba020 |
+ if dracut_module_included "systemd-initrd"; then
|
|
Harald Hoyer |
7ba020 |
+ inst_script "$moddir/livenet-generator.sh" $systemdutildir/system-generators/dracut-livenet-generator
|
|
Harald Hoyer |
7ba020 |
+ fi
|
|
Harald Hoyer |
7ba020 |
dracut_need_initqueue
|
|
Harald Hoyer |
7ba020 |
}
|