kexec-tools/kdump_dracut_modules/99kdumpbase/kdump_localfs.sh
2011-07-27 00:02:19 +08:00

19 lines
347 B
Bash
Executable File

#!/bin/sh
. /lib/kdump-lib.sh
read_kdump_conf
set -x
# 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`
mount -o remount,rw $NEWROOT/
mkdir -p $NEWROOT/$KDUMP_PATH/$DATEDIR
$CORE_COLLECTOR /proc/vmcore $NEWROOT/$KDUMP_PATH/$DATEDIR/vmcore
sync
do_default_action