summaryrefslogtreecommitdiffstats
path: root/scripts/lib/wic/imager
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/lib/wic/imager')
-rw-r--r--scripts/lib/wic/imager/direct.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/lib/wic/imager/direct.py b/scripts/lib/wic/imager/direct.py
index edf5e5d221..4c547e04a6 100644
--- a/scripts/lib/wic/imager/direct.py
+++ b/scripts/lib/wic/imager/direct.py
@@ -108,7 +108,7 @@ class DirectImageCreator(BaseImageCreator):
108 if pnum == num: 108 if pnum == num:
109 if part.no_table: 109 if part.no_table:
110 return 0 110 return 0
111 if self.ptable_format == 'msdos' and realnum > 3: 111 if self.ptable_format == 'msdos' and realnum > 3 and len(parts) > 4:
112 # account for logical partition numbering, ex. sda5.. 112 # account for logical partition numbering, ex. sda5..
113 return realnum + 1 113 return realnum + 1
114 return realnum 114 return realnum