[packages/systemd] - proper activate md arrays in PLD. - We don't use /dev/md/md-device-map - mdadm -IRs don't work in

blekot blekot at pld-linux.org
Tue Mar 26 18:33:29 CET 2013


commit 2946060b5331c475e6ac106f6fa0f0d566c2541e
Author: Lukasz Glebicki <blekot at pld-linux.org>
Date:   Tue Mar 26 15:54:29 2013 +0100

    - proper activate md arrays in PLD.
    - We don't use /dev/md/md-device-map
    - mdadm -IRs don't work in PLD. Switched to rc-scripts method

 pld-storage-init.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/pld-storage-init.sh b/pld-storage-init.sh
index 451f1bb..97fb2b7 100644
--- a/pld-storage-init.sh
+++ b/pld-storage-init.sh
@@ -27,7 +27,7 @@ if [ -x /sbin/dmraid ]; then
 fi
 
 # Start any MD RAID arrays that haven't been started yet
-[ -r /proc/mdstat ] && [ -r /dev/md/md-device-map ] && /sbin/mdadm -IRs
+[ -r /proc/mdstat ] && /sbin/mdadm -As --auto=yes --run 2>&1
 
 if ! is_no "$LVM2" && [ -x /sbin/lvm ]; then
 	modprobe -s dm-mod >/dev/null 2>&1
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/systemd.git/commitdiff/e09353976a5c1c0e643db41afa14787b55cb490c



More information about the pld-cvs-commit mailing list