fix mkmacboot truncating the output file
Use open(imgfile, 'r+b'), not 'wb'. Duh.
This commit is contained in:
parent
417fdf93cc
commit
7ea8baeae3
@ -52,7 +52,7 @@ def macbless(imgfile):
|
||||
nodedata = struct.pack(">i", blessnode)
|
||||
dirdata = struct.pack(">i", dirnode)
|
||||
# Write it to the volume header
|
||||
with open(imgfile, "wb") as img:
|
||||
with open(imgfile, "r+b") as img:
|
||||
img.seek(0x450) # HFSPlusVolumeHeader->finderInfo
|
||||
img.write(dirdata) # finderInfo[0]
|
||||
img.write(nodedata) # finderInfo[1]
|
||||
|
Loading…
Reference in New Issue
Block a user