summaryrefslogtreecommitdiff
path: root/packages/initscripts/initscripts-1.0
diff options
context:
space:
mode:
authorMike Westerhof <mwester@dls.net>2008-08-29 16:53:31 +0000
committerMike Westerhof <mwester@dls.net>2008-08-29 16:53:31 +0000
commitfeb7dfbddb590c8ab69b9c669b02ad6edffd355d (patch)
tree239e8acdfe3ab51868135c75f3c561ab801b40b4 /packages/initscripts/initscripts-1.0
parent1758389618b9d52af94c8a7ba40df3e63b707998 (diff)
SlugOS 5.0: /etc/init.d/mountall.sh - assemble mdraid arrays before mounting them.
Diffstat (limited to 'packages/initscripts/initscripts-1.0')
-rw-r--r--packages/initscripts/initscripts-1.0/slugos/mountall.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/packages/initscripts/initscripts-1.0/slugos/mountall.sh b/packages/initscripts/initscripts-1.0/slugos/mountall.sh
index 94ea8217fd..3a155d155b 100644
--- a/packages/initscripts/initscripts-1.0/slugos/mountall.sh
+++ b/packages/initscripts/initscripts-1.0/slugos/mountall.sh
@@ -5,6 +5,15 @@
#
. /etc/default/rcS
+# If the right stuff exists, attempt to automatically assemble any
+# RAID devices that might be configured.
+#
+if test -x /sbin/mdadm
+then
+ test "$VERBOSE" != no && echo "Assembling RAID devices..."
+ mdadm --assemble --scan --auto=md
+fi
+
#
# Mount local filesystems in /etc/fstab. For some reason, people
# might want to mount "proc" several times, and mount -v complains