Skip to content

Commit 1a80860

Browse files
committed
ptool: Generate missing 33 sectors empty file
Signed-off-by: Loïc Minier <[email protected]>
1 parent 3f37704 commit 1a80860

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

ptool.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,7 @@ def CreateErasingRawProgramFiles():
396396
temp.append(Comment('NOTE: This is an ** Autogenerated file **'))
397397
temp.append(Comment('NOTE: Sector size is %ibytes'%SECTOR_SIZE_IN_BYTES))
398398

399+
CreateFileOfZeros("zeros_33sectors.bin",33)
399400
UpdateRawProgram(temp,0, 0.5, i, 0, 1, "zeros_33sectors.bin", "false", "Overwrite MBR sector")
400401
UpdateRawProgram(temp,1, BackupGPTNumLBAs*SECTOR_SIZE_IN_BYTES/1024.0, i, 0, BackupGPTNumLBAs, "zeros_%dsectors.bin" % BackupGPTNumLBAs, "false", "Overwrite Primary GPT Sectors")
401402

0 commit comments

Comments
 (0)