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