kexec-tools/kdump_dracut_modules/99kdumpbase/kdump_localfs.sh

19 lines
347 B
Bash
Raw Normal View History

2011-07-21 10:48:58 +00:00
#!/bin/sh
. /lib/kdump-lib.sh
read_kdump_conf
2011-07-21 10:48:58 +00:00
set -x
2011-07-21 10:48:58 +00:00
# We have the root file system mounted under $NEWROOT, so copy
# the vmcore there and call it a day
#
DATEDIR=`date +%d.%m.%y-%T`
2011-07-21 10:48:58 +00:00
mount -o remount,rw $NEWROOT/
mkdir -p $NEWROOT/$KDUMP_PATH/$DATEDIR
$CORE_COLLECTOR /proc/vmcore $NEWROOT/$KDUMP_PATH/$DATEDIR/vmcore
2011-07-21 10:48:58 +00:00
sync
2011-07-26 16:02:19 +00:00
do_default_action