diff options
author | Seblu <seblu@seblu.net> | 2011-02-24 04:09:16 +0100 |
---|---|---|
committer | Thomas Bächler <thomas@archlinux.org> | 2011-02-27 11:52:05 +0100 |
commit | d1e9a3deff2d432bb8f39cd94bf27182cb67948c (patch) | |
tree | 9476bc36a8ba402e7caf558fdded8a27f33795e7 | |
parent | 3d9fbd69fbab72ccdbdfda584b732636cece908c (diff) | |
download | initscripts-d1e9a3deff2d432bb8f39cd94bf27182cb67948c.tar.xz |
Implement FakeRAID detection at startup
-rw-r--r-- | rc.conf | 3 | ||||
-rwxr-xr-x | rc.sysinit | 5 |
2 files changed, 8 insertions, 0 deletions
@@ -36,6 +36,9 @@ USECOLOR="yes" MOD_AUTOLOAD="yes" MODULES=() +# Scan for FakeRAID (dmraid) Volumes at startup +USEDMRAID="no" + # Scan for LVM volume groups at startup, required if you use LVM USELVM="no" @@ -117,6 +117,11 @@ if [[ -f /etc/mdadm.conf ]] && /bin/grep -q ^ARRAY /etc/mdadm.conf; then status "Activating RAID arrays" /sbin/mdadm --assemble --scan fi +# FakeRAID devices detection +if [[ $USEDMRAID =~ yes|YES && -x /sbin/dmraid ]]; then + status "Activating FakeRAID arrays" /sbin/dmraid -i -ay +fi + activate_vgs # Set up non-root encrypted partition mappings |