From 95deb7f9ac56d5a65b432d969cdb95010e1e1b2b Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 18 Oct 2022 14:14:49 +0200 Subject: [dev] Fix missing instance where we need to check for 0f --- modules/dev.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/dev.inc b/modules/dev.inc index 7c6e1e7..0b27eff 100644 --- a/modules/dev.inc +++ b/modules/dev.inc @@ -97,7 +97,7 @@ dev_get_type() { return 0 fi else # part number 5+ -- must be logical volume in extended partition - # Scan for Primary type 05, scan linked list of fake MBRs from there + # Scan for Primary type 05/0f, scan linked list of fake MBRs from there 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" )" @@ -134,6 +134,7 @@ dev_get_type() { # next logical partition's fake MBR is relative to the extended partition's start next_start="$( __read_mbrstart "$dev" "$current" 2 )" echo "Extended id $log_id, next $next_id, $next_start" >&2 + [ "$next_id" = "0f" ] && next_id="05" if [ "$next_id" = "05" ] && [ "$next_start" -ge 512 ]; then current="$(( next_start + ex_start ))" no="$(( no + 1 ))" # Increase counter for next logical partition -- cgit v1.2.3-55-g7522