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:
parent
1719a8aa92
commit
5a77531f8a
|
@ -59,13 +59,13 @@ get_kdump_confs()
|
||||||
DEFAULT_ACTION="kdump_emergency_shell"
|
DEFAULT_ACTION="kdump_emergency_shell"
|
||||||
;;
|
;;
|
||||||
reboot)
|
reboot)
|
||||||
DEFAULT_ACTION="do_umount; reboot"
|
DEFAULT_ACTION="reboot"
|
||||||
;;
|
;;
|
||||||
halt)
|
halt)
|
||||||
DEFAULT_ACTION="do_umount; halt"
|
DEFAULT_ACTION="halt"
|
||||||
;;
|
;;
|
||||||
poweroff)
|
poweroff)
|
||||||
DEFAULT_ACTION="do_umount; poweroff"
|
DEFAULT_ACTION="poweroff"
|
||||||
;;
|
;;
|
||||||
dump_to_rootfs)
|
dump_to_rootfs)
|
||||||
DEFAULT_ACTION="dump_to_rootfs"
|
DEFAULT_ACTION="dump_to_rootfs"
|
||||||
|
@ -153,11 +153,6 @@ kdump_emergency_shell()
|
||||||
rm -f /etc/profile
|
rm -f /etc/profile
|
||||||
}
|
}
|
||||||
|
|
||||||
do_umount()
|
|
||||||
{
|
|
||||||
umount -Rf $NEWROOT
|
|
||||||
}
|
|
||||||
|
|
||||||
do_default_action()
|
do_default_action()
|
||||||
{
|
{
|
||||||
echo "Kdump: Executing default action $DEFAULT_ACTION"
|
echo "Kdump: Executing default action $DEFAULT_ACTION"
|
||||||
|
@ -166,6 +161,5 @@ do_default_action()
|
||||||
|
|
||||||
do_final_action()
|
do_final_action()
|
||||||
{
|
{
|
||||||
do_umount
|
|
||||||
eval $FINAL_ACTION
|
eval $FINAL_ACTION
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue