]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
2010-01-28 Christian Schmitt <chris@ilovelinux.de>
authorChristian Schmitt <chris@ilovelinux.de>
Thu, 28 Jan 2010 22:10:37 +0000 (23:10 +0100)
committerVladimir 'phcoder' Serbinenko <phcoder@gmail.com>
Thu, 28 Jan 2010 22:10:37 +0000 (23:10 +0100)
        * util/ieee1275/grub-install.in: Fix nvsetenv arguments.

ChangeLog
util/ieee1275/grub-install.in

index 4e30a39a87f6d97181a726cbe0a53daf67e79416..f0d88159937e5410bfb803bfa8fd6aed82aef293 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-01-28  Christian Schmitt  <chris@ilovelinux.de>
+
+        * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
+
 2010-01-28  BVK Chaitanya  <bvk.groups@gmail.com>
 
        * include/grub/script_sh.h (sourcecode): Add const qualifier.
index 9a26b0dca96cb8cf1ba3e0af16ddcb173798ba7a..97c485d5587d8edae5a40417c91dfa9a76766fdb 100644 (file)
@@ -46,8 +46,8 @@ install_device=
 debug=no
 update_nvram=yes
 
-ofpathname=/usr/sbin/ofpathname
-nvsetenv=/sbin/nvsetenv
+ofpathname=`which ofpathname`
+nvsetenv=`which nvsetenv`
 
 # Usage: usage
 # Print the usage.
@@ -216,11 +216,11 @@ if test $update_nvram = yes; then
     }
 
     # Point boot-device at the new grub install
-    boot_device="boot-device $ofpath:$partno,\\grub"
-    "$nvsetenv" "$boot_device" || {
+    boot_device="$ofpath:$partno,\\grub"
+    "$nvsetenv" boot-device "$boot_device" || {
        echo "$nvsetenv failed."
        echo "You will have to set boot-device manually.  At the Open Firmware prompt, type:"
-       echo "  setenv $boot_device"
+       echo "  setenv boot-device $boot_device"
        exit 1
     }
 fi