diff options
Diffstat (limited to 'debian/mdadm-raid')
-rw-r--r-- | debian/mdadm-raid | 5 |
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:-} |