Package: syslinux
Version: 2:4.03+dfsg-7
Severity: normal

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

-- System Information:
Debian Release: 6.0
  APT prefers testing
  APT policy: (700, 'testing'), (300, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages syslinux depends on:
ii  libc6                      2.11.2-7      Embedded GNU C Library: Shared lib
ii  syslinux-common            2:4.03+dfsg-7 collection of boot loaders (common

syslinux recommends no packages.

Versions of packages syslinux suggests:
ii  dosfstools                    3.0.9-1    utilities for making and checking 
ii  mtools                        4.0.12-1   Tools for manipulating MSDOS files

-- no debconf information
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