Speed up sysa.img generation

This commit is contained in:
Googulator 2023-11-13 09:46:46 +01:00
parent 7747e86834
commit d67a3d2bb4

View file

@ -220,8 +220,6 @@ class SysA(SysGeneral):
image_file.write(b'\0' * round_up)
current_size += round_up
# fill file with zeros up to desired size, one megabyte at a time
# extend file up to desired size
with open(image_file_name, 'ab') as image_file:
while current_size < 16384 * megabyte:
image_file.write(b'\0' * megabyte)
current_size += megabyte
image_file.truncate(16384 * megabyte)