The patch from Lennart works for me.
Test case:
On a emply mbr
dd if=/dev/zero of=/dev/sda bs=1 count=446
fdisk -l /dev/sda | grep '^Disk identifier'
Disk identifier: 0x00000000
install-mbr /dev/sda
works fine
On a disk with a Windows 7 disk signature
(or created manually with fdisk advanced command)
fdisk -l /dev/sda | grep '^Disk identifier'
Disk identifier: 0x743f7f11
install-mbr:/dev/sda: Probable detection of modern MBR format which is
currently incompatible with install-mbr. Installing will probably break
Windows installations on this system. Use --force to override.
However ! The problem is that the Windows installer is not the only one
who adds a Disk Identifier when creating out a partition table. parted
does that as well, and if applied, the patch breaks vmdebootstrap and
build-openstack-debian-image, who creates diskimages, partition them
with parted, and then run install-mbr on the disk image.
So at the moment the only safe alternative I can think of to safely
install a mbr, is to use the /usr/lib/EXTLINUX/mbr.bin file which comes
with the extlinux package. It is 440 bytes long and hence do not
overwrite an existing disk signature.
--
To UNSUBSCRIBE, email to debian-bugs-rc-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org