about summary refs log tree commit diff
path: root/core-services
diff options
context:
space:
mode:
authorAntonio Gurgel <antonio@goorzhel.com>2021-06-21 17:04:50 -0700
committerMichael Aldridge <aldridge.mac@gmail.com>2022-03-27 13:47:19 -0500
commit5edfa9543b7911467468db09c4717cb878c76871 (patch)
treea7d44e70c48b64ff28ccc3f0eeb0a5cd49c2e15a /core-services
parentb5a9f57837d949f42d39066576c6a0bcdbdb8e37 (diff)
downloadrunit-void-5edfa9543b7911467468db09c4717cb878c76871.tar.gz
runit-void-5edfa9543b7911467468db09c4717cb878c76871.tar.xz
runit-void-5edfa9543b7911467468db09c4717cb878c76871.zip
Activate mdadm arrays on boot
Diffstat (limited to 'core-services')
-rw-r--r--core-services/03-filesystems.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/core-services/03-filesystems.sh b/core-services/03-filesystems.sh
index df40ff7..bb7eac0 100644
--- a/core-services/03-filesystems.sh
+++ b/core-services/03-filesystems.sh
@@ -10,6 +10,11 @@ if [ -x /sbin/dmraid -o -x /bin/dmraid ]; then
     dmraid -i -ay
 fi
 
+if [ -x /bin/mdadm ]; then
+    msg "Activating software RAID arrays..."
+    mdadm -As
+fi
+
 if [ -x /bin/btrfs ]; then
     msg "Activating btrfs devices..."
     btrfs device scan || emergency_shell