Bug#597538: grub-ieee1275: grub-install needs to pass a --prefix option to grub-mkimage

Colin Watson cjwatson at debian.org
Tue Sep 21 10:51:58 UTC 2010


On Mon, Sep 20, 2010 at 12:33:00PM -0400, Daniel Kahn Gillmor wrote:
> a standard powerpc mac mini is unable to boot with grub after running
> 
>   grub-install /dev/hda
> 
> (the machine's only disk uses an apple partitioning scheme, with an HFS 
> volume as (hd,apple2) mounted at /boot/grub)
[...]
> it looks like grub-install isn't passing a --prefix option to 
> grub-mkimage.
> 
> Re-running /usr/sbin/grub-install /dev/hda with the attached patch 
> applied makes it so that this ugly workaround is no longer necessary.

Thanks for your report.

> --- /usr/sbin/grub-install	2010-08-23 08:23:50.000000000 -0400
> +++ /usr/sbin/grub-install.new	2010-09-20 11:47:30.000000000 -0400
> @@ -222,7 +222,7 @@
>  modules="$modules $fs_module $partmap_module $devabstraction_module"
>  
>  # Now perform the installation.
> -"$grub_mkimage" -O ${target_cpu}-ieee1275 --directory=${pkglibdir} --output=${grubdir}/grub $modules || exit 1
> +"$grub_mkimage" -O ${target_cpu}-ieee1275 --directory=${pkglibdir} --output=${grubdir}/grub --prefix=${prefix_drive}${relative_grubdir} $modules || exit 1
>  
>  if test $update_nvram = yes; then
>      set $ofpathname dummy

I don't see how this can be sufficient, since neither prefix_drive nor
relative_grubdir is set in the current version of the script.

Does the attached patch work?  It's a partial resync with the main
version of grub-install, anticipating the next snapshot/release where
all the different grub-installs are merged into a single version.

Thanks,

-- 
Colin Watson                                       [cjwatson at debian.org]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ieee1275_install_prefix.patch
Type: text/x-diff
Size: 4523 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20100921/f5778b2a/attachment.patch>


More information about the Pkg-grub-devel mailing list