In kdump module, we install our kdump hook in pre-pivot, for kdump over network, we also need network modules, e.g. nfs module, so kernel modules can't be cleaned before that. Invoke these two cleanup scripts as late as possible. Cc: Harald Hoyer <harald@xxxxxxxxxx> Signed-off-by: WANG Cong <xiyou.wangcong@xxxxxxxxx> --- diff --git a/modules.d/40network/module-setup.sh b/modules.d/40network/module-setup.sh index ef7818a..fa61994 100755 --- a/modules.d/40network/module-setup.sh +++ b/modules.d/40network/module-setup.sh @@ -84,7 +84,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 97 "$moddir/kill-dhclient.sh" _arch=$(uname -m) diff --git a/modules.d/90kernel-modules/module-setup.sh b/modules.d/90kernel-modules/module-setup.sh index 88f0e2d..e81476c 100755 --- a/modules.d/90kernel-modules/module-setup.sh +++ b/modules.d/90kernel-modules/module-setup.sh @@ -75,7 +75,7 @@ install() { inst_simple "$i" done inst_hook cmdline 01 "$moddir/parse-kernel.sh" - inst_hook pre-pivot 20 "$moddir/kernel-cleanup.sh" + inst_hook pre-pivot 98 "$moddir/kernel-cleanup.sh" inst_simple "$moddir/insmodpost.sh" /sbin/insmodpost.sh for _f in modules.builtin.bin modules.builtin; do -- To unsubscribe from this list: send the line "unsubscribe initramfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html