From aaa03f0005d3aa9813cd418a6905f91e39a976b9 Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Fri, 18 Jun 2021 10:55:19 +0200 Subject: [dev] dev_get_type = 0f is an extended partition too... --- modules/dev.inc | 7 +++++-- 1 file 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 -- cgit v1.2.3-55-g7522