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 <chaowang@redhat.com>
Acked-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
WANG Chao 2014-08-05 13:18:35 +08:00
parent 1719a8aa92
commit 5a77531f8a
1 changed files with 3 additions and 9 deletions

View File

@ -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
}