From 08fbf92ecbb4f70afc361b3b3a30d49d57b8654f Mon Sep 17 00:00:00 2001 From: Vladimir 'phcoder' Serbinenko Date: Wed, 28 Mar 2012 17:58:21 +0200 Subject: [PATCH] * util/grub-install.in: Fix nvram call for PreP. --- ChangeLog | 4 ++++ util/grub-install.in | 7 +++++++ 2 files changed, 11 insertions(+) diff --git a/ChangeLog b/ChangeLog index cfc84c365..f8041d05e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2012-03-28 Vladimir Serbinenko + + * util/grub-install.in: Fix nvram call for PreP. + 2012-03-28 Vladimir Serbinenko * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade diff --git a/util/grub-install.in b/util/grub-install.in index 9c1d1338b..92288950f 100644 --- a/util/grub-install.in +++ b/util/grub-install.in @@ -764,6 +764,13 @@ elif [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" = "i386-ieee1275" ] echo " dd if=/dev/zero of=${install_device}" exit 1 fi + dev="`echo "${install_device}" | sed -e 's/\/dev\///' -e 's/[0-9]\+//'`" + boot_device="`$ofpathname "$dev"`" || { + # TRANSLATORS: "device tree path" is the name of the device + # for IEEE1275 + 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 + } fi "$nvsetenv" boot-device "$boot_device" || {