Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I4LZp-0002st-K1 for mharc-grub-devel@gnu.org; Fri, 29 Jun 2007 14:52:17 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I4LZn-0002sb-Qg for grub-devel@gnu.org; Fri, 29 Jun 2007 14:52:15 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I4LZn-0002sP-EQ for grub-devel@gnu.org; Fri, 29 Jun 2007 14:52:15 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I4LZn-0002sM-7X for grub-devel@gnu.org; Fri, 29 Jun 2007 14:52:15 -0400 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I4LZm-0006i6-Py for grub-devel@gnu.org; Fri, 29 Jun 2007 14:52:14 -0400 Received: from [192.168.10.6] (helo=aragorn) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1I4LZl-0001PR-0f for grub-devel@gnu.org; Fri, 29 Jun 2007 20:52:13 +0200 Received: from rmh by aragorn with local (Exim 4.63) (envelope-from ) id 1I4Lb5-0007lU-5q for grub-devel@gnu.org; Fri, 29 Jun 2007 20:53:35 +0200 Date: Fri, 29 Jun 2007 20:53:35 +0200 From: Robert Millan To: grub-devel@gnu.org Message-ID: <20070629185335.GA29815@aragorn> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="LZvS9be/3tNcYl/X" Content-Disposition: inline Organization: free as in freedom X-Message-Flag: Microsoft discourages use of Outlook. X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-Spam-Score: -0.1 (/) X-detected-kernel: Genre and OS details not recognized. Subject: [openfirmware] patch to fail more gracefuly when nvsetenv doesn't work X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jun 2007 18:52:16 -0000 --LZvS9be/3tNcYl/X Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Could someone test this on an OpenFirmware machine for which nvsetenv works? The idea is that for those machines in which nvsetenv isn't usable, at least user gets to know what command to type. -- Robert Millan My spam trap is honeypot@aybabtu.com. Note: this address is only intended for spam harvesters. Writing to it will get you added to my black list. --LZvS9be/3tNcYl/X Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="nvsetenv.diff" diff -ur grub2-1.95+20070626.old/util/powerpc/ieee1275/grub-install.in grub2-1.95+20070626/util/powerpc/ieee1275/grub-install.in --- grub2-1.95+20070626.old/util/powerpc/ieee1275/grub-install.in 2007-05-05 13:55:20.000000000 +0200 +++ grub2-1.95+20070626/util/powerpc/ieee1275/grub-install.in 2007-06-29 20:51:41.000000000 +0200 @@ -180,9 +180,11 @@ } # Point boot-device at the new grub install - "$nvsetenv" boot-device "$ofpath:$partno,"'\grub' || { + boot_device="boot-device $ofpath:$partno,\\grub" + "$nvsetenv" "$boot_device" || { echo "$nvsetenv failed." - echo "You will have to set boot-device manually." + echo "You will have to set boot-device manually. At the OpenFirmware prompt, type:" + echo " ok setenv $boot_device" exit 1 } fi --LZvS9be/3tNcYl/X--