mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-23 19:46:31 +01:00
Speed up sysa.img generation
This commit is contained in:
parent
7747e86834
commit
d67a3d2bb4
1 changed files with 2 additions and 4 deletions
6
sysa.py
6
sysa.py
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue