Since we've use systemd to control the shutdown path, there's not need
for us to unmount the filesystem, systemd will do that for us just like
it does in a normal boot.
Signed-off-by: WANG Chao <chaowang(a)redhat.com>
---
kdump-lib-initramfs.sh | 12 +++---------
1 file changed, 3 insertions(+), 9 deletions(-)
diff --git a/kdump-lib-initramfs.sh b/kdump-lib-initramfs.sh
index 6927d27..f882b09 100755
--- a/kdump-lib-initramfs.sh
+++ b/kdump-lib-initramfs.sh
@@ -59,13 +59,13 @@ get_kdump_confs()
DEFAULT_ACTION="kdump_emergency_shell"
;;
reboot)
- DEFAULT_ACTION="do_umount; reboot"
+ DEFAULT_ACTION="reboot"
;;
halt)
- DEFAULT_ACTION="do_umount; halt"
+ DEFAULT_ACTION="halt"
;;
poweroff)
- DEFAULT_ACTION="do_umount; poweroff"
+ DEFAULT_ACTION="poweroff"
;;
dump_to_rootfs)
DEFAULT_ACTION="dump_to_rootfs"
@@ -153,11 +153,6 @@ kdump_emergency_shell()
rm -f /etc/profile
}
-do_umount()
-{
- umount -Rf $NEWROOT
-}
-
do_default_action()
{
echo "Kdump: Executing default action $DEFAULT_ACTION"
@@ -166,6 +161,5 @@ do_default_action()
do_final_action()
{
- do_umount
eval $FINAL_ACTION
}
--
1.9.3