summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/utils/partitionedfs.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py
index 9e76487844..9ea4a30cbb 100644
--- a/scripts/lib/wic/utils/partitionedfs.py
+++ b/scripts/lib/wic/utils/partitionedfs.py
@@ -201,9 +201,10 @@ class Image():
201 part['num'] = 0 201 part['num'] = 0
202 202
203 if disk['ptable_format'] == "msdos": 203 if disk['ptable_format'] == "msdos":
204 if disk['realpart'] > 3: 204 if len(self.partitions) > 4:
205 part['type'] = 'logical' 205 if disk['realpart'] > 3:
206 part['num'] = disk['realpart'] + 1 206 part['type'] = 'logical'
207 part['num'] = disk['realpart'] + 1
207 208
208 disk['partitions'].append(num) 209 disk['partitions'].append(num)
209 msger.debug("Assigned %s to %s%d, sectors range %d-%d size %d " 210 msger.debug("Assigned %s to %s%d, sectors range %d-%d size %d "