Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1I67dE-0004mr-Bg for mharc-grub-devel@gnu.org; Wed, 04 Jul 2007 12:23:08 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I67dC-0004mP-SW for grub-devel@gnu.org; Wed, 04 Jul 2007 12:23:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I67dB-0004li-9N for grub-devel@gnu.org; Wed, 04 Jul 2007 12:23:06 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I67dB-0004lf-7M for grub-devel@gnu.org; Wed, 04 Jul 2007 12:23:05 -0400 Received: from pop-altamira.atl.sa.earthlink.net ([207.69.195.62]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1I67dA-00084N-U4 for grub-devel@gnu.org; Wed, 04 Jul 2007 12:23:05 -0400 Received: from user-0vvdafg.cable.mindspring.com ([63.246.169.240] helo=[192.168.0.2]) by pop-altamira.atl.sa.earthlink.net with esmtp (Exim 3.36 #1) id 1I67dA-0004bQ-00 for grub-devel@gnu.org; Wed, 04 Jul 2007 12:23:04 -0400 From: Hollis Blanchard To: The development of GRUB 2 In-Reply-To: <20070629185335.GA29815@aragorn> References: <20070629185335.GA29815@aragorn> Content-Type: text/plain Date: Wed, 04 Jul 2007 11:23:03 -0500 Message-Id: <1183566183.7721.44.camel@diesel> Mime-Version: 1.0 X-Mailer: Evolution 2.8.3 (2.8.3-2.fc6) Content-Transfer-Encoding: 7bit X-detected-kernel: Solaris 8 (1) Subject: Re: [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: Wed, 04 Jul 2007 16:23:07 -0000 On Fri, 2007-06-29 at 20:53 +0200, Robert Millan wrote: > > 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. > > > > > > > > text/x-diff > attachment > (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 I would omit the " ok " here, since the user should not type that. Also, the name is "Open Firmware", not "OpenFirmware". -Hollis