Blame 0023-move-cleanup-scripts-to-pre-pivot-cleanup-hook.patch

Harald Hoyer 1f6198
From 1bd76bf981d5cec3d5ba879102d84040aa5b902d Mon Sep 17 00:00:00 2001
Harald Hoyer 1f6198
From: Dave Young <dyoung@redhat.com>
Harald Hoyer 1f6198
Date: Thu, 19 Apr 2012 12:01:43 +0800
Harald Hoyer 1f6198
Subject: [PATCH] move cleanup scripts to pre-pivot-cleanup hook
Harald Hoyer 1f6198
Harald Hoyer 1f6198
below cleanup scripts is moved:
Harald Hoyer 1f6198
40network: kill-dhclient.sh
Harald Hoyer 1f6198
90crypt: crypt-cleanup.sh
Harald Hoyer 1f6198
90multipath: multipathd-stop.sh
Harald Hoyer 1f6198
95iscsi: cleanup-iscsi.sh
Harald Hoyer 1f6198
95nfs: nfsroot-cleanup.sh
Harald Hoyer 1f6198
Harald Hoyer 1f6198
Signed-off-by: Dave Young <dyoung@redhat.com>
Harald Hoyer 1f6198
---
Harald Hoyer 1f6198
 modules.d/40network/module-setup.sh   |    2 +-
Harald Hoyer 1f6198
 modules.d/90crypt/module-setup.sh     |    2 +-
Harald Hoyer 1f6198
 modules.d/90multipath/module-setup.sh |    2 +-
Harald Hoyer 1f6198
 modules.d/95iscsi/module-setup.sh     |    2 +-
Harald Hoyer 1f6198
 modules.d/95nfs/module-setup.sh       |    2 +-
Harald Hoyer 1f6198
 5 files changed, 5 insertions(+), 5 deletions(-)
Harald Hoyer 1f6198
Harald Hoyer 1f6198
diff --git a/modules.d/40network/module-setup.sh b/modules.d/40network/module-setup.sh
Harald Hoyer 1f6198
index 253a87e..c2ad815 100755
Harald Hoyer 1f6198
--- a/modules.d/40network/module-setup.sh
Harald Hoyer 1f6198
+++ b/modules.d/40network/module-setup.sh
Harald Hoyer 1f6198
@@ -86,7 +86,7 @@ install() {
Harald Hoyer 1f6198
     inst_hook cmdline 97 "$moddir/parse-bridge.sh"
Harald Hoyer 1f6198
     inst_hook cmdline 98 "$moddir/parse-ip-opts.sh"
Harald Hoyer 1f6198
     inst_hook cmdline 99 "$moddir/parse-ifname.sh"
Harald Hoyer 1f6198
-    inst_hook pre-pivot 10 "$moddir/kill-dhclient.sh"
Harald Hoyer 1f6198
+    inst_hook pre-pivot-cleanup 10 "$moddir/kill-dhclient.sh"
Harald Hoyer 1f6198
 
Harald Hoyer 1f6198
     _arch=$(uname -m)
Harald Hoyer 1f6198
 
Harald Hoyer 1f6198
diff --git a/modules.d/90crypt/module-setup.sh b/modules.d/90crypt/module-setup.sh
Harald Hoyer 1f6198
index 8fdf32b..4a66516 100755
Harald Hoyer 1f6198
--- a/modules.d/90crypt/module-setup.sh
Harald Hoyer 1f6198
+++ b/modules.d/90crypt/module-setup.sh
Harald Hoyer 1f6198
@@ -48,7 +48,7 @@ install() {
Harald Hoyer 1f6198
     inst "$moddir"/probe-keydev.sh /sbin/probe-keydev
Harald Hoyer 1f6198
     inst_hook cmdline 10 "$moddir/parse-keydev.sh"
Harald Hoyer 1f6198
     inst_hook cmdline 30 "$moddir/parse-crypt.sh"
Harald Hoyer 1f6198
-    inst_hook pre-pivot 30 "$moddir/crypt-cleanup.sh"
Harald Hoyer 1f6198
+    inst_hook pre-pivot-cleanup 30 "$moddir/crypt-cleanup.sh"
Harald Hoyer 1f6198
     inst_simple /etc/crypttab
Harald Hoyer 1f6198
     inst "$moddir/crypt-lib.sh" "/lib/dracut-crypt-lib.sh"
Harald Hoyer 1f6198
 }
Harald Hoyer 1f6198
diff --git a/modules.d/90multipath/module-setup.sh b/modules.d/90multipath/module-setup.sh
Harald Hoyer 1f6198
index 8a193c4..f044f33 100755
Harald Hoyer 1f6198
--- a/modules.d/90multipath/module-setup.sh
Harald Hoyer 1f6198
+++ b/modules.d/90multipath/module-setup.sh
Harald Hoyer 1f6198
@@ -70,7 +70,7 @@ install() {
Harald Hoyer 1f6198
     inst_libdir_file "multipath/*"
Harald Hoyer 1f6198
 
Harald Hoyer 1f6198
     inst_hook pre-trigger 02 "$moddir/multipathd.sh"
Harald Hoyer 1f6198
-    inst_hook pre-pivot   02 "$moddir/multipathd-stop.sh"
Harald Hoyer 1f6198
+    inst_hook pre-pivot-cleanup   02 "$moddir/multipathd-stop.sh"
Harald Hoyer 1f6198
     inst_rules 40-multipath.rules
Harald Hoyer 1f6198
 }
Harald Hoyer 1f6198
 
Harald Hoyer 1f6198
diff --git a/modules.d/95iscsi/module-setup.sh b/modules.d/95iscsi/module-setup.sh
Harald Hoyer 1f6198
index b6c1c1f..a001a28 100755
Harald Hoyer 1f6198
--- a/modules.d/95iscsi/module-setup.sh
Harald Hoyer 1f6198
+++ b/modules.d/95iscsi/module-setup.sh
Harald Hoyer 1f6198
@@ -63,7 +63,7 @@ install() {
Harald Hoyer 1f6198
     inst hostname
Harald Hoyer 1f6198
     inst iscsi-iname
Harald Hoyer 1f6198
     inst_hook cmdline 90 "$moddir/parse-iscsiroot.sh"
Harald Hoyer 1f6198
-    inst_hook pre-pivot 90 "$moddir/cleanup-iscsi.sh"
Harald Hoyer 1f6198
+    inst_hook pre-pivot-cleanup 90 "$moddir/cleanup-iscsi.sh"
Harald Hoyer 1f6198
     inst "$moddir/iscsiroot.sh" "/sbin/iscsiroot"
Harald Hoyer 1f6198
     inst "$moddir/mount-lun.sh" "/bin/mount-lun.sh"
Harald Hoyer 1f6198
 }
Harald Hoyer 1f6198
diff --git a/modules.d/95nfs/module-setup.sh b/modules.d/95nfs/module-setup.sh
Harald Hoyer 1f6198
index 455f52f..3587bdd 100755
Harald Hoyer 1f6198
--- a/modules.d/95nfs/module-setup.sh
Harald Hoyer 1f6198
+++ b/modules.d/95nfs/module-setup.sh
Harald Hoyer 1f6198
@@ -58,7 +58,7 @@ install() {
Harald Hoyer 1f6198
 
Harald Hoyer 1f6198
     inst_hook cmdline 90 "$moddir/parse-nfsroot.sh"
Harald Hoyer 1f6198
     inst_hook pre-udev 99 "$moddir/nfs-start-rpc.sh"
Harald Hoyer 1f6198
-    inst_hook pre-pivot 99 "$moddir/nfsroot-cleanup.sh"
Harald Hoyer 1f6198
+    inst_hook pre-pivot-cleanup 99 "$moddir/nfsroot-cleanup.sh"
Harald Hoyer 1f6198
     inst "$moddir/nfsroot.sh" "/sbin/nfsroot"
Harald Hoyer 1f6198
     inst "$moddir/nfs-lib.sh" "/lib/nfs-lib.sh"
Harald Hoyer 1f6198
     mkdir -m 0755 -p "$initdir/var/lib/nfs/rpc_pipefs"