2011-07-21 10:48:58 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2011-07-25 11:38:43 +00:00
|
|
|
. /lib/kdump-lib.sh
|
|
|
|
read_kdump_conf
|
2011-07-21 10:48:58 +00:00
|
|
|
set -x
|
2011-07-25 11:38:43 +00:00
|
|
|
|
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-25 11:38:43 +00:00
|
|
|
|
2011-07-21 10:48:58 +00:00
|
|
|
mount -o remount,rw $NEWROOT/
|
2011-07-25 11:38:43 +00:00
|
|
|
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
|
|
|
|
|