summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2022-10-18 14:14:49 +0200
committerSimon Rettberg2022-10-18 14:14:49 +0200
commit95deb7f9ac56d5a65b432d969cdb95010e1e1b2b (patch)
tree26be3384753f9dc9bd4f778110f9e9d2eb4e73b4
parent[dev] Add dev_swap_version: Returns version number of a swap partition (diff)
downloadslx-tools-95deb7f9ac56d5a65b432d969cdb95010e1e1b2b.tar.gz
slx-tools-95deb7f9ac56d5a65b432d969cdb95010e1e1b2b.tar.xz
slx-tools-95deb7f9ac56d5a65b432d969cdb95010e1e1b2b.zip
[dev] Fix missing instance where we need to check for 0f
-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