rpms/kexec-tools/devel/kdump_initscripts kdumpinit.rootfs,1.2,1.3
Neil Horman
nhorman at fedoraproject.org
Thu Jul 2 19:33:35 UTC 2009
Author: nhorman
Update of /cvs/extras/rpms/kexec-tools/devel/kdump_initscripts
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv3158/kdump_initscripts
Modified Files:
kdumpinit.rootfs
Log Message:
Updating mkdumprd2 infrastructure
Index: kdumpinit.rootfs
===================================================================
RCS file: /cvs/extras/rpms/kexec-tools/devel/kdump_initscripts/kdumpinit.rootfs,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -p -r1.2 -r1.3
--- kdumpinit.rootfs 20 May 2009 16:42:31 -0000 1.2
+++ kdumpinit.rootfs 2 Jul 2009 19:33:05 -0000 1.3
@@ -21,12 +21,51 @@ start_udev
##################################################
load_modules
+##################################################
+# Assemble any existing lvm arrays
+##################################################
+assemble_lvm_array
+
+
+##################################################
+# Assemble any mdraid partitions that might exist
+##################################################
+#TODO - FILL ME IN
+##################################################
+# Mount the root file system
+# Note that the sample manifest modified
+# The /etc/fstab file to put the root file system
+# under /mnt directly
+##################################################
+mount /mnt
+if [ $? -ne 0]
+ echo "Failed to mount root fs for dump capture. rebooting"
+ reboot -f
+fi
+##################################################
+# Now capture the core dump to the target fs
+# Note we need to set the date here
+##################################################
+if [ -f /etc/clock ]
+then
+ . /etc/clock
+fi
+if [ "$UTC" == "true" ]
+then
+ TIME_FORMAT=-u
+else
+ TIME_FORMAT=-l
+fi
+hwclock --hctosys $TIME_FORMAT
+DATE=`date +%Y-%m-%d-%T`
+cp /proc/vmcore /mnt/var/crash/$DATE/vmcore
+
##################################################
# Reboot the system to get back to production
##################################################
More information about the fedora-extras-commits
mailing list