summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/mdadm.config2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/mdadm.config b/debian/mdadm.config
index 239ed287..a7e33dab 100644
--- a/debian/mdadm.config
+++ b/debian/mdadm.config
@@ -51,7 +51,7 @@ db_input high mdadm/warning || true
db_go
if [ -z "$INITRDSTART" ]; then
- ROOTRAIDDEV="$(df / | sed -ne 's,^\(/dev/[^[:space:]]\+\).*,\1,p')"
+ ROOTRAIDDEV="$(df / | sed -rne 's,^(/dev/[^[:space:]]+).*,\1,p')"
if ! mdadm --detail $ROOTRAIDDEV >/dev/null 2>&1; then
# you are using some funky setup. Let's be save...
INITRDSTART=all