summaryrefslogtreecommitdiff
path: root/debian/mdadm-raid
diff options
context:
space:
mode:
authormadduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464>2006-08-13 22:43:54 +0000
committermadduck <madduck@3cfab66f-1918-0410-86b3-c06b76f9a464>2006-08-13 22:43:54 +0000
commit824b653a18ea5ba4942dbcadfe9ba9662c8ecda1 (patch)
tree83a72e921c852e8821ed0d10b8d6d035e5dbba8d /debian/mdadm-raid
parent6677fd8e30ec13cb12500ab2c91267d47fe76ab8 (diff)
* Don't fail mdadm-raid when /dev is on a read-only filesystem
(closes: #382876).
Diffstat (limited to 'debian/mdadm-raid')
-rw-r--r--debian/mdadm-raid5
1 files changed, 4 insertions, 1 deletions
diff --git a/debian/mdadm-raid b/debian/mdadm-raid
index 421d5220..99169cc7 100644
--- a/debian/mdadm-raid
+++ b/debian/mdadm-raid
@@ -80,7 +80,10 @@ case "${1:-}" in
if [ -f $CONFIG ] || [ -f $ALTCONFIG ]; then
# handle devfs-style names and version-1 devices
- mkdir --parent /dev/md
+ # fail gracefully in case we're on a read-only filesystem, in which
+ # case it's safe to assume that the admin knows what s/he's doing.
+ # See (#382876).
+ mkdir --parent /dev/md || :
# ugly hack because shell sucks
IFSOLD=${IFS:-}