summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/lib/wic/kickstart/custom_commands/partition.py8
1 files changed, 5 insertions, 3 deletions
diff --git a/scripts/lib/wic/kickstart/custom_commands/partition.py b/scripts/lib/wic/kickstart/custom_commands/partition.py
index f41d136d8f..8b0ace6299 100644
--- a/scripts/lib/wic/kickstart/custom_commands/partition.py
+++ b/scripts/lib/wic/kickstart/custom_commands/partition.py
@@ -318,9 +318,11 @@ class Wic_PartData(Mic_PartData):
318 318
319 # Ensure total sectors is an integral number of sectors per 319 # Ensure total sectors is an integral number of sectors per
320 # track or mcopy will complain. Sectors are 512 bytes, and we 320 # track or mcopy will complain. Sectors are 512 bytes, and we
321 # generate images with 32 sectors per track. This calculation is 321 # generate images with 32 sectors per track. This calculation
322 # done in blocks, thus the mod by 16 instead of 32. 322 # is done in blocks, thus the mod by 16 instead of 32. Apply
323 blocks += (16 - (blocks % 16)) 323 # sector count fix only when needed.
324 if blocks % 16 != 0:
325 blocks += (16 - (blocks % 16))
324 326
325 dosfs_cmd = "mkdosfs -n boot -S 512 -C %s %d" % (rootfs, blocks) 327 dosfs_cmd = "mkdosfs -n boot -S 512 -C %s %d" % (rootfs, blocks)
326 exec_native_cmd(dosfs_cmd, native_sysroot) 328 exec_native_cmd(dosfs_cmd, native_sysroot)