Adding default initscript for rootfs
This commit is contained in:
parent
54f5e9a2c7
commit
e8af50beea
19
kdumpinit.rootfs
Normal file
19
kdumpinit.rootfs
Normal 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
|
||||
|
7
manifest
7
manifest
@ -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
|
||||
###################################################
|
||||
|
Loading…
Reference in New Issue
Block a user