Hi,

this is basically a forward of http://bugs.debian.org/609688 where a user reported the following:

---snip---
isohybrid fails to set the MBR ID when invoked with -id, whereas isohybrid.pl
works as expected. Attached is a small program to read the id from a given
file.

$ python getid.py some.iso
0x9785721e
$ isohybrid -id 0x12345678 some.iso
$ python getid.py some.iso
0x9785721e
$ isohybrid.pl -id 0x12345678 some.iso
$ python getid.py some.iso
0x12345678
---snap---

his getid.py is attached to this mail for your convenience, too.

Regards,
Daniel

--
Address:        Daniel Baumann, Burgunderstrasse 3, CH-4562 Biberist
Email:          [email protected]
Internet:       http://people.progress-technologies.net/~daniel.baumann/
import sys
import struct

handle = open(sys.argv[1])
handle.seek(440)
id = struct.unpack('<I', handle.read(4))[0]

print hex(id)

Reply via email to