Blame | Last modification | View Log | RSS feed
#!/bin/sh#################################################### Start by setting up the console to work as a user# expects###################################################exec >/dev/console 2>&1export TERM=linuxexport PS1='initramfs-test:\w\$ 'stty sane################################################### Start udev up##################################################start_udev################################################### Load all the modules based on# /etc/module_load_list##################################################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 /mntif [ $? -ne 0]echo "Failed to mount root fs for dump capture. rebooting"reboot -ffi################################################### Now capture the core dump to the target fs# Note we need to set the date here##################################################if [ -f /etc/clock ]then. /etc/clockfiif [ "$UTC" == "true" ]thenTIME_FORMAT=-uelseTIME_FORMAT=-lfihwclock --hctosys $TIME_FORMATDATE=`date +%Y-%m-%d-%T`cp /proc/vmcore /mnt/var/crash/$DATE/vmcore################################################### Reboot the system to get back to production##################################################reboot -f