diff --git a/kdumpinit.rootfs b/kdumpinit.rootfs new file mode 100644 index 0000000..26062f6 --- /dev/null +++ b/kdumpinit.rootfs @@ -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//vmcore +# 6) reboots the system +############################################################## + + +# Set the path to something sane +export PATH=/sbin:/bin + +load_available_modules + diff --git a/manifest b/manifest index d005156..bbb5a73 100644 --- a/manifest +++ b/manifest @@ -11,6 +11,7 @@ # 1) reg # reg # A regular file copy from the source to the dst directory +# # 2) creg # creg # like reg, but only copy if the source file exists @@ -56,6 +57,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 ################################################### creg /etc/lvm/lvm.conf /etc/lvm