summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/dev.inc3
1 files changed, 2 insertions, 1 deletions
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