Skip to contentSkip to conversation

network: move the kill-dhclient.sh hook later

PATCH In review Cong Wang 2 participants 2 messages Apr 17, 2012 – Apr 18, 2012 1 message not in the archive

lore
Share & tools
lore

Cong Wang

author
#0 lore raw

PATCH 1/1 network: move the kill-dhclient.sh hook later

kdump module uses a pre-pivot hook too, it needs networking, so do not kill dhclient so early. kdump hook needs to find a place where all needed fs are mounted meanwhile networking works too.

Cc Harald Hoyer <[email protected]>

---

modules.d/40network/module-setup.sh +1 -1
index c91f164..1a7d206 100755
@@ -85,7 +85,7 @@ install() {
     inst_hook cmdline 97 "$moddir/parse-bridge.sh"
     inst_hook cmdline 98 "$moddir/parse-ip-opts.sh"
     inst_hook cmdline 99 "$moddir/parse-ifname.sh"
-    inst_hook pre-pivot 10 "$moddir/kill-dhclient.sh"
+    inst_hook pre-pivot 98 "$moddir/kill-dhclient.sh"
 
     _arch=$(uname -m)
 
#2 lore raw
In reply to a message not in the archive
Quoted 3 lines · Cong Wang

kdump module uses a pre-pivot hook too, it needs networking, so do not kill dhclient so early. kdump hook needs to find a place where all needed fs are mounted meanwhile networking works too.

There's still below hooks need consider if you want to move:

90crypt/module-setup.sh: inst_hook pre-pivot 30
"$moddir/crypt-cleanup.sh"
95iscsi/module-setup.sh: inst_hook pre-pivot 90
"$moddir/cleanup-iscsi.sh"

Quoted 22 lines
Cc Harald Hoyer <[email protected]>

---

modules.d/40network/module-setup.sh +1 -2
index c91f164..1a7d206 100755
@@ -85,7 +85,7 @@ install() {
     inst_hook cmdline 97 "$moddir/parse-bridge.sh"
     inst_hook cmdline 98 "$moddir/parse-ip-opts.sh"
     inst_hook cmdline 99 "$moddir/parse-ifname.sh"
-    inst_hook pre-pivot 10 "$moddir/kill-dhclient.sh"
+    inst_hook pre-pivot 98 "$moddir/kill-dhclient.sh"
 
     _arch=$(uname -m)
 
--

To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

Signature · 2 lines
Thanks
Dave