summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/plugins/imager/direct.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/wic/plugins/imager/direct.py')
-rw-r--r--scripts/lib/wic/plugins/imager/direct.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/plugins/imager/direct.py b/scripts/lib/wic/plugins/imager/direct.py
index aa9cc9f4e3..f20d8433f1 100644
--- a/scripts/lib/wic/plugins/imager/direct.py
+++ b/scripts/lib/wic/plugins/imager/direct.py
@@ -313,7 +313,7 @@ class PartitionedImage():
313 part.realnum = 0 313 part.realnum = 0
314 else: 314 else:
315 realnum += 1 315 realnum += 1
316 if self.ptable_format == 'msdos' and realnum > 3: 316 if self.ptable_format == 'msdos' and realnum > 3 and len(partitions) > 4:
317 part.realnum = realnum + 1 317 part.realnum = realnum + 1
318 continue 318 continue
319 part.realnum = realnum 319 part.realnum = realnum