Browse Source

rc.sysinit: implemented mdadm and lvm2 handling

0.2-maint
Alejandro Mery 16 years ago
parent
commit
5e82d195aa
1 changed files with 24 additions and 0 deletions
  1. +24
    -0
      initramfs/etc_rc.d_rc.sysinit.sh

+ 24
- 0
initramfs/etc_rc.d_rc.sysinit.sh

@ -100,3 +100,27 @@ for x in $(unet pending); do
check unet $x up check unet $x up
status status
done 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

Loading…
Cancel
Save