There is still a small bit of an issue with grub-install on IBM powerpc.

I run 'grub-install /dev/sda1' where /dev/sda1 is my prep boot partition.

Unfortunately grub-install runs this:

        # Get the Open Firmware device tree path translation.
        dev="`echo $grub_device | sed -e 's/\/dev\///' -e 's/[0-9]\+//'`"
        partno="`echo $grub_device | sed -e 's/.*[^0-9]\([0-9]\+\)$/\1/'`"
        ofpath="`$ofpathname $dev`" || {
            gettext_printf "Couldn't find IEEE1275 device tree path for 
%s.\nYou will have to set \`boot-device' variable manually.\n" "$dev" 1>&2
            exit 1
        }

Which fails, because grub_device is /dev/md0, which the code turns into
dev=md, partno=0, which is of course wrong.

If I change it to $install_device instead, then it correctly determines
the path to the install partition which is the one that should be getting
set in the nvram.

So if the user specifies an install location, then that is what this
should be looking at, not the device grub has determined itself.

So any idea what the best way to fix this is?

Of course another issue I have is that really I want to specify multiple
install targets since I am running software raid, and I want to install
grub to all the disks and add all the disks to the nvram's boot-device
list so that I can still boot if a device fails.  grub-install seems
very much designed with one boot device only in mind.

-- 
Len Sorensen

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to