summaryrefslogtreecommitdiff
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
parent1758389618b9d52af94c8a7ba40df3e63b707998 (diff)
SlugOS 5.0: /etc/init.d/mountall.sh - assemble mdraid arrays before mounting them.
-rw-r--r--packages/initscripts/initscripts-1.0/slugos/mountall.sh9
-rw-r--r--packages/initscripts/initscripts-slugos_1.0.bb2
2 files changed, 10 insertions, 1 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
diff --git a/packages/initscripts/initscripts-slugos_1.0.bb b/packages/initscripts/initscripts-slugos_1.0.bb
index b742ad5071..18176ed4f8 100644
--- a/packages/initscripts/initscripts-slugos_1.0.bb
+++ b/packages/initscripts/initscripts-slugos_1.0.bb
@@ -16,7 +16,7 @@ RDEPENDS = ""
# All other standard definitions inherited from initscripts
# Except the PR which is hacked here. The format used is
# a suffix
-PR := "${PR}.14"
+PR := "${PR}.15"
FILESPATH = "${@base_set_filespath([ '${FILE_DIRNAME}/${P}', '${FILE_DIRNAME}/initscripts-${PV}', '${FILE_DIRNAME}/files', '${FILE_DIRNAME}' ], d)}"