diff --git a/initramfs/etc_rc.d_rc.sysinit.sh b/initramfs/etc_rc.d_rc.sysinit.sh index b3948a0..1c48e16 100644 --- a/initramfs/etc_rc.d_rc.sysinit.sh +++ b/initramfs/etc_rc.d_rc.sysinit.sh @@ -100,3 +100,27 @@ for x in $(unet pending); do check unet $x up status done + +if [ "$use_mdadm" = "yes" ]; then + title "Detecting RAID volumes" + check mdadm -Esv > /etc/mdadm.conf + status +fi + +if [ -s /etc/mdadm.conf ]; then + title "Starting RAID volumes" + check mdadm -As + status +fi + +if [ "$use_lvm" = "yes" ]; then + title "Detecting LVM volumes" + check vgscan + status +fi + +if [ -n "$(ls -1 /etc/lvm/archive/*.vg 2> /dev/null)" ]; then + title "Starting LVM volumes" + check vgchange -ay + status +fi