From 5a77531f8a8003847ff58e5e7cf200e6a306c9ea Mon Sep 17 00:00:00 2001 From: WANG Chao Date: Tue, 5 Aug 2014 13:18:35 +0800 Subject: [PATCH] Let systemd handle unmount 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 Acked-by: Vivek Goyal --- 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 }