]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
* util/grub-install.in: Fix usage of wrong device for PreP install.
authorVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 24 Feb 2012 11:35:38 +0000 (12:35 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Fri, 24 Feb 2012 11:35:38 +0000 (12:35 +0100)
ChangeLog
util/grub-install.in

index 29f25d26653e6c6c1cc6cabe0d3de17a231e39fe..627938fbf94b71ec461fdd2a32b4f5be7f090344 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2012-02-24  Vladimir Serbinenko  <phcoder@gmail.com>
+
+       * util/grub-install.in: Fix usage of wrong device for PreP install.
+
 2012-02-24  Vladimir Serbinenko  <phcoder@gmail.com>
 
        * conf/Makefile.common (CFLAGS_GNULIB): Add
index cbb37ead2f6248402a24c4fc0d8814612010118a..52e2f16f58feece4241bf738d1fbe2af4af5028a 100644 (file)
@@ -643,8 +643,8 @@ elif [ "${target_cpu}-${platform}" = "i386-ieee1275" ] || [ "${target_cpu}-${pla
            exit 1
        fi
         # 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/'`"
+       dev="`echo $install_device | sed -e 's/\/dev\///' -e 's/[0-9]\+//'`"
+       partno="`echo $install_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