Adding default initscript for rootfs

This commit is contained in:
Neil Horman 2009-05-20 00:34:41 +00:00
parent 54f5e9a2c7
commit e8af50beea
2 changed files with 26 additions and 0 deletions

19
kdumpinit.rootfs Normal file
View File

@ -0,0 +1,19 @@
#!/bin/msh
##############################################################
# This is the default init script for our initramfs
# It does the following:
# 1) loads all the available modules
# 2) Waits for any critical disks
# 3) starts lvm/mdraid if needed
# 4) mounts the rootfs under /mnt/
# 5) copies /proc/vmcore to /mnt/var/crash/<date>/vmcore
# 6) reboots the system
##############################################################
# Set the path to something sane
export PATH=/sbin:/bin
load_available_modules

View File

@ -11,6 +11,7 @@
# 1) reg
# reg <source file> <dest path>
# A regular file copy from the source to the dst directory
#
# 2) creg
# creg <source file> <dest path>
# like reg, but only copy if the source file exists
@ -55,6 +56,12 @@ exec populate_kdump_std_files
###################################################
exec generate_module_list
###################################################
# If we have one, copy the critical disk list
# so we don't try to start lvm/mdraid to early
###################################################
creg /etc/kdump-adv-conf/critical_disks /etc
###################################################
# Lets get all our lvm and mdraid configs on board
###################################################