dump_rootfs for default target fix
Do not reboot in dump_rootfs function, also do not directly call dump_rootfs for default dump. Instead just adding it to DUMP_INSTRUCTION as other user specified dump target. Signed-off-by: Dave Young <dyoung@redhat.com> Acked-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
parent
e720fcdadf
commit
d5bc608abd
@ -100,8 +100,6 @@ dump_rootfs()
|
|||||||
mkdir -p $NEWROOT/$KDUMP_PATH/$DATEDIR
|
mkdir -p $NEWROOT/$KDUMP_PATH/$DATEDIR
|
||||||
$CORE_COLLECTOR /proc/vmcore $NEWROOT/$KDUMP_PATH/$DATEDIR/vmcore || return 1
|
$CORE_COLLECTOR /proc/vmcore $NEWROOT/$KDUMP_PATH/$DATEDIR/vmcore || return 1
|
||||||
sync
|
sync
|
||||||
reboot -f
|
|
||||||
return 0
|
|
||||||
}
|
}
|
||||||
|
|
||||||
dump_nfs()
|
dump_nfs()
|
||||||
@ -185,11 +183,8 @@ read_kdump_conf()
|
|||||||
|
|
||||||
read_kdump_conf
|
read_kdump_conf
|
||||||
|
|
||||||
if [ -n "$DUMP_INSTRUCTION" ]
|
if [ -z "$DUMP_INSTRUCTION" ]; then
|
||||||
then
|
add_dump_code "dump_rootfs"
|
||||||
eval "$DUMP_INSTRUCTION && reboot -f"
|
|
||||||
else
|
|
||||||
dump_rootfs
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
eval "$DUMP_INSTRUCTION && reboot -f"
|
||||||
|
Loading…
Reference in New Issue
Block a user