diff options
-rw-r--r-- | setup-disk.in | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/setup-disk.in b/setup-disk.in index 33cc868..c11d20c 100644 --- a/setup-disk.in +++ b/setup-disk.in @@ -149,6 +149,7 @@ has_mounted_part() { # parse /proc/mounts for mounted devices for p in $(awk '$1 ~ /^\/dev\// {gsub("/dev/", "", $1); print $1}' \ /proc/mounts); do + [ "$p" = "$1" ] && return 0 [ -e /sys/block/$1/$p ] && return 0 done return 1 |