Bug#597538: more notes on #597538

Daniel Kahn Gillmor dkg at fifthhorseman.net
Sun Jan 16 05:50:44 UTC 2011


Re: http://bugs.debian.org/597538, using grub-common and grub-ieee1275
version 1.99~20110112-1, on this old iBook:

Attached is a transcript of running "grub-install /dev/hda" with the
shell's "set -x" added.

As you can see, it calculates that it should send --prefix=/

But in fact, for this machine, it should send --prefix=(hd,apple2)/


After generating this transcript, i tried applying the two-line patch
(also attached), and it chose --prefix=(hd0,apple2)/

This also fails to boot cleanly, in spite of the fact that grub appears
to accept (hd0,...) in later stages.  The earliest stage seems to only
want to see the device listed as (hd,...) .


It appears that grub-instal chose this value because of the device.map
that it auto-generated (i tried removing the file, and the same file was
re-generated):

(hd0)	/dev/disk/by-id/ata-IBM-DBCA-203240_HP0RPLQ9068

However, if i manually update the device.map to (hd) instead of (hd0),
keep the patch applied, and then re-run "grub-install /dev/hda", it
chooses the correct --prefix.

After that, i can successfully reboot the machine without trouble.

(if i remove the patch, and re-run "grub-install /dev/hda" with the
corrected device.map, grub fails to boot again, and needs the earlier
workaround)

hth,

	--dkg
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: grub-install.out
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20110116/f6bf130c/attachment-0001.txt>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 597538.patch
Type: text/x-diff
Size: 476 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20110116/f6bf130c/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20110116/f6bf130c/attachment-0001.pgp>


More information about the Pkg-grub-devel mailing list