diff options
-rw-r--r-- | modules/dev.inc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/modules/dev.inc b/modules/dev.inc index 1c804a3..6d66678 100644 --- a/modules/dev.inc +++ b/modules/dev.inc @@ -100,9 +100,12 @@ dev_get_type() { local no id ex_start log_id log_start next_id next_start current for no in 1 2 3 4; do id="$( __read_mbrid "$dev" 0 "$no" )" - [ "$id" = "05" ] && break + if [ "$id" = "05" ] || [ "$id" = "0f" ]; then + id="found" + break + fi done - if [ "$id" != "05" ]; then + if [ "$id" != "found" ]; then echo "No matching extended primary partition found" >&2 else echo "Primary $no is extended partition" >&2 |