grub-install PPC fixes
PATCH 1/1 grub-install PPC fixes
Hello,
the latest trunk version of Grub works now nicely on my PPC machine, however, grub-install needs some fixes. The following patch changes the hardcoded ofpathname and nvsetenv paths to something more flexible.
The most important change however ist that the script now passes the "boot- device" variable properly to nvsetenv. The old version did not produce an error, but the change was not written to nvram.
I hope this patch gets applied.
Changelog:
"util/ieee1275/grub-install.in: do not hardcode ofpathname and nvsetenv paths and fix nvsetenv call to actually write the boot device to NVRAM"
Cheers,
Chris
ieee1275/grub-install.in.new renamed from ieee1275/grub-install.in +5 -5
@@ -46,8 +46,8 @@ 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 @@ } # 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
Hello,
I'm sorry for not supplying a proper Changelog directly. Well, here it goes:
2010-01-28 Christian Schmitt <[email protected]>
* util/ieee1275/grub-install.in: fix the nvsetenv call to actually
write the boot device to NVRAM. It did not produce an error but nothing was
written. Now it is also in accordance with the nvsetenv manpage.
Do not hardcode ofpathname and nvsetenv paths as these can be different on some systems.
Quoted 17 lines · On Wednesday 27 January 2010 10:36:41 Christian Schmitt wrote:
Hello,
the latest trunk version of Grub works now nicely on my PPC machine, however, grub-install needs some fixes. The following patch changes the hardcoded ofpathname and nvsetenv paths to something more flexible. The most important change however ist that the script now passes the "boot- device" variable properly to nvsetenv. The old version did not produce an error, but the change was not written to nvram.
I hope this patch gets applied.
Changelog:
"util/ieee1275/grub-install.in: do not hardcode ofpathname and nvsetenv paths and fix nvsetenv call to actually write the boot device to NVRAM"Cheers,
Chris