Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Na4I3-0000UD-Jw for mharc-grub-devel@gnu.org; Wed, 27 Jan 2010 04:34:23 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Na4I0-0000T8-FM for grub-devel@gnu.org; Wed, 27 Jan 2010 04:34:20 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Na4Hz-0000Sj-N5 for grub-devel@gnu.org; Wed, 27 Jan 2010 04:34:19 -0500 Received: from [199.232.76.173] (port=45096 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Na4Hz-0000Sc-Fl for grub-devel@gnu.org; Wed, 27 Jan 2010 04:34:19 -0500 Received: from mail.sigmos.de ([89.28.140.11]:52204) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Na4Hy-0008W1-Os for grub-devel@gnu.org; Wed, 27 Jan 2010 04:34:19 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.sigmos.de (Postfix) with ESMTP id 94A5A1318A98 for ; Wed, 27 Jan 2010 10:34:17 +0100 (CET) Received: from mail.sigmos.de ([127.0.0.1]) by localhost (mail.sigmos.de [127.0.0.1]) (amavisd-maia, port 10024) with ESMTP id 22315-01 for ; Wed, 27 Jan 2010 10:34:17 +0100 (CET) Received: from tux.localnet (fb4-pool-1.dv-nr.fh-frankfurt.de [194.95.82.249]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: chris@ilovelinux.de) by mail.sigmos.de (Postfix) with ESMTP id C80D21318A97 for ; Wed, 27 Jan 2010 10:34:16 +0100 (CET) To: grub-devel@gnu.org From: Christian Schmitt Date: Wed, 27 Jan 2010 10:36:41 +0100 MIME-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_pkAYL2sc4C0XMra" Message-Id: <201001271036.41690.chris@ilovelinux.de> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: [PATCH] grub-install PPC fixes X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 27 Jan 2010 09:34:20 -0000 --Boundary-00=_pkAYL2sc4C0XMra Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 --Boundary-00=_pkAYL2sc4C0XMra Content-Type: text/x-patch; charset="utf-8"; name="grub-install_ppc.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="grub-install_ppc.patch" --- util/ieee1275/grub-install.in 2010-01-27 09:21:05.000000000 +0100 +++ util/ieee1275/grub-install.in.new 2010-01-27 09:32:58.000000000 +0100 @@ -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 --Boundary-00=_pkAYL2sc4C0XMra--