diff options
Diffstat (limited to 'scripts/lib/wic/partition.py')
-rw-r--r-- | scripts/lib/wic/partition.py | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py index 34fd7d6a72..30cd320a30 100644 --- a/scripts/lib/wic/partition.py +++ b/scripts/lib/wic/partition.py | |||
@@ -281,14 +281,6 @@ class Partition(): | |||
281 | msger.debug("Added %d extra blocks to %s to get to %d total blocks" % \ | 281 | msger.debug("Added %d extra blocks to %s to get to %d total blocks" % \ |
282 | (extra_blocks, self.mountpoint, blocks)) | 282 | (extra_blocks, self.mountpoint, blocks)) |
283 | 283 | ||
284 | # Ensure total sectors is an integral number of sectors per | ||
285 | # track or mcopy will complain. Sectors are 512 bytes, and we | ||
286 | # generate images with 32 sectors per track. This calculation | ||
287 | # is done in blocks, thus the mod by 16 instead of 32. Apply | ||
288 | # sector count fix only when needed. | ||
289 | if blocks % 16 != 0: | ||
290 | blocks += (16 - (blocks % 16)) | ||
291 | |||
292 | label_str = "-n boot" | 284 | label_str = "-n boot" |
293 | if self.label: | 285 | if self.label: |
294 | label_str = "-n %s" % self.label | 286 | label_str = "-n %s" % self.label |