|
|
e83cdd |
From 53cece208a44c53ecc001cb8eb769f6fb9b3d1dc Mon Sep 17 00:00:00 2001
|
|
|
e83cdd |
From: Lubomir Rintel <lkundrak@v3.sk>
|
|
|
e83cdd |
Date: Mon, 27 May 2019 11:12:22 +0200
|
|
|
e83cdd |
Subject: [PATCH] network: parse root=dhcp also with network-manager module
|
|
|
e83cdd |
|
|
|
e83cdd |
Move the logic from network-legacy to common network code.
|
|
|
e83cdd |
|
|
|
e83cdd |
(cherry picked from commit 35efada5ecffd139660b4a89f4cc3d627752c91e)
|
|
|
e83cdd |
---
|
|
|
e83cdd |
modules.d/35network-legacy/module-setup.sh | 1 -
|
|
|
e83cdd |
modules.d/{35network-legacy => 40network}/dhcp-root.sh | 0
|
|
|
e83cdd |
modules.d/40network/module-setup.sh | 1 +
|
|
|
e83cdd |
3 files changed, 1 insertion(+), 1 deletion(-)
|
|
|
e83cdd |
|
|
|
e83cdd |
diff --git a/modules.d/35network-legacy/module-setup.sh b/modules.d/35network-legacy/module-setup.sh
|
|
|
e83cdd |
index 71abda36..5a82e998 100755
|
|
|
e83cdd |
--- a/modules.d/35network-legacy/module-setup.sh
|
|
|
e83cdd |
+++ b/modules.d/35network-legacy/module-setup.sh
|
|
|
e83cdd |
@@ -36,7 +36,6 @@ install() {
|
|
|
e83cdd |
inst_simple -H "/etc/dhclient.conf"
|
|
|
e83cdd |
cat "$moddir/dhclient.conf" >> "${initdir}/etc/dhclient.conf"
|
|
|
e83cdd |
inst_hook pre-udev 60 "$moddir/net-genrules.sh"
|
|
|
e83cdd |
- inst_hook cmdline 91 "$moddir/dhcp-root.sh"
|
|
|
e83cdd |
inst_hook cmdline 92 "$moddir/parse-ibft.sh"
|
|
|
e83cdd |
inst_hook cmdline 95 "$moddir/parse-vlan.sh"
|
|
|
e83cdd |
inst_hook cmdline 96 "$moddir/parse-bond.sh"
|
|
|
e83cdd |
diff --git a/modules.d/35network-legacy/dhcp-root.sh b/modules.d/40network/dhcp-root.sh
|
|
|
e83cdd |
similarity index 100%
|
|
|
e83cdd |
rename from modules.d/35network-legacy/dhcp-root.sh
|
|
|
e83cdd |
rename to modules.d/40network/dhcp-root.sh
|
|
|
e83cdd |
diff --git a/modules.d/40network/module-setup.sh b/modules.d/40network/module-setup.sh
|
|
|
e83cdd |
index e8541636..8e2a74a3 100755
|
|
|
e83cdd |
--- a/modules.d/40network/module-setup.sh
|
|
|
e83cdd |
+++ b/modules.d/40network/module-setup.sh
|
|
|
e83cdd |
@@ -28,6 +28,7 @@ install() {
|
|
|
e83cdd |
inst_script "$moddir/netroot.sh" "/sbin/netroot"
|
|
|
e83cdd |
inst_simple "$moddir/net-lib.sh" "/lib/net-lib.sh"
|
|
|
e83cdd |
inst_hook pre-udev 50 "$moddir/ifname-genrules.sh"
|
|
|
e83cdd |
+ inst_hook cmdline 91 "$moddir/dhcp-root.sh"
|
|
|
e83cdd |
|
|
|
e83cdd |
dracut_need_initqueue
|
|
|
e83cdd |
}
|
|
|
e83cdd |
|