aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--rc.conf3
-rwxr-xr-xrc.sysinit5
2 files changed, 8 insertions, 0 deletions
diff --git a/rc.conf b/rc.conf
index e719096..cb8f69d 100644
--- a/rc.conf
+++ b/rc.conf
@@ -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"
diff --git a/rc.sysinit b/rc.sysinit
index cedf151..5e5ed2b 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -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