summaryrefslogtreecommitdiffstats
path: root/setup-disk.in
diff options
context:
space:
mode:
Diffstat (limited to 'setup-disk.in')
-rw-r--r--setup-disk.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/setup-disk.in b/setup-disk.in
index 266284f..584f099 100644
--- a/setup-disk.in
+++ b/setup-disk.in
@@ -23,6 +23,9 @@ _blkid() {
# if given device have an UUID display it, otherwise return the device
uuid_or_device() {
local i=
+ case "$1" in
+ /dev/md*) echo "$1" && return 0;;
+ esac
for i in $(_blkid "$1"); do
case "$i" in
UUID=*) eval $i;;