diff options
Diffstat (limited to 'scripts/lib')
| -rw-r--r-- | scripts/lib/wic/utils/partitionedfs.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/lib/wic/utils/partitionedfs.py b/scripts/lib/wic/utils/partitionedfs.py index 68301f0b47..721d514326 100644 --- a/scripts/lib/wic/utils/partitionedfs.py +++ b/scripts/lib/wic/utils/partitionedfs.py | |||
| @@ -201,7 +201,8 @@ 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 len(self.partitions) > 4: | 204 | # only count the partitions that are in partition table |
| 205 | if len([p for p in self.partitions if not p['no_table']]) > 4: | ||
| 205 | if disk['realpart'] > 3: | 206 | if disk['realpart'] > 3: |
| 206 | part['type'] = 'logical' | 207 | part['type'] = 'logical' |
| 207 | part['num'] = disk['realpart'] + 1 | 208 | part['num'] = disk['realpart'] + 1 |
