diff options
-rw-r--r-- | modules/dev.inc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/dev.inc b/modules/dev.inc index c83e7fe..5a9619d 100644 --- a/modules/dev.inc +++ b/modules/dev.inc @@ -45,7 +45,7 @@ dev_find_partitions() { fi done local label number mbrid uuid - for dev in $(find $target* -type b); do + for dev in $(find $target* -maxdepth 0 -type b); do [ -n "$rw" ] && [ "$( cat "/sys/class/block/${dev##*/}/ro" )" = "1" ] && continue dev_get_type "$dev" || continue echo "$dev is $number - MBR=$mbrid, UUID=$uuid, label=$label" >&2 |