Remove "-F" in CORE_COLLECTOR when dump_to_rootfs
If CORE_COLLECTOR is makedumpfile, "-F" is only allowed on ssh/raw, removing it when dump_to_rootfs is necessary. Signed-off-by: Baoquan He <bhe@redhat.com> Acked-by: Dave Young <dyoung@redhat.com> Acked-by: Vivek Goyal <vgoyal@redhat.com>
This commit is contained in:
parent
603224b256
commit
8281e9a37a
@ -85,6 +85,9 @@ dump_raw()
|
||||
|
||||
dump_to_rootfs()
|
||||
{
|
||||
#For dumping to rootfs, "-F" need be removed. Surely only available for makedumpfile case.
|
||||
[[ $CORE_COLLECTOR = *makedumpfile* ]] && CORE_COLLECTOR=`echo $CORE_COLLECTOR | sed -e s/-F//g`
|
||||
|
||||
mount -o remount,rw $NEWROOT/ || return 1
|
||||
mkdir -p $NEWROOT/$KDUMP_PATH/$HOST_IP-$DATEDIR
|
||||
$CORE_COLLECTOR /proc/vmcore $NEWROOT/$KDUMP_PATH/$HOST_IP-$DATEDIR/vmcore || return 1
|
||||
|
Loading…
Reference in New Issue
Block a user