Bug#382876: /etc/init.d/mdadm-raid fails if / is mounted read-only

Jason Lunz lunz at falooley.org
Sun Aug 13 21:40:25 UTC 2006


Package: mdadm
Version: 2.5.2-10

The attempt to mkdir /dev/md will fail if /dev is on a read-only
filesystem. Since /etc/init.d/mdadm-raid is run with -e, this causes the
script to exit and no arrays are started.

--- mdadm-2.5.2/debian/mdadm-raid.orig	2006-08-13 17:37:45.483974000 -0400
+++ mdadm-2.5.2/debian/mdadm-raid	2006-08-13 17:37:54.900562500 -0400
@@ -77,7 +77,7 @@
 
       if [ -f $CONFIG ] || [ -f $ALTCONFIG ]; then
         # handle devfs-style names and version-1 devices
-        mkdir --parent /dev/md
+        mkdir --parent /dev/md || true
 
         # ugly hack because shell sucks
         IFSOLD=${IFS:-}




More information about the pkg-mdadm-devel mailing list