Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Ncf6z-0005hI-9M for mharc-grub-devel@gnu.org; Wed, 03 Feb 2010 08:17:41 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ncf6x-0005fl-If for grub-devel@gnu.org; Wed, 03 Feb 2010 08:17:39 -0500 Received: from [199.232.76.173] (port=35338 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ncf6w-0005fS-Mi for grub-devel@gnu.org; Wed, 03 Feb 2010 08:17:38 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Ncf6v-0007Jn-L4 for grub-devel@gnu.org; Wed, 03 Feb 2010 08:17:38 -0500 Received: from mail1.slb.deg.dub.stisp.net ([84.203.253.98]:13915) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1Ncf6v-0007J3-5i for grub-devel@gnu.org; Wed, 03 Feb 2010 08:17:37 -0500 Received: (qmail 97444 invoked from network); 3 Feb 2010 13:17:34 -0000 Received: from unknown (HELO ?192.168.2.25?) (84.203.137.218) by mail1.slb.deg.dub.stisp.net with SMTP; 3 Feb 2010 13:17:34 -0000 Message-ID: <4B697701.5020207@draigBrady.com> Date: Wed, 03 Feb 2010 13:15:45 +0000 From: =?ISO-8859-1?Q?P=E1draig_Brady?= User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.7) Gecko/20100111 Thunderbird/3.0.1 MIME-Version: 1.0 To: The development of GNU GRUB References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-detected-operating-system: by monty-python.gnu.org: FreeBSD 4.6-4.9 Cc: George Buranov Subject: Re: UEFI. Running grub only once functionality 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, 03 Feb 2010 13:17:40 -0000 On 03/02/10 10:04, George Buranov wrote: > Hello everybody. > <#inbox> > I got situation: I need to load linux kernel from grub, that can easily > fail on some computers (even in production). I use grub to load this and > the only this kernel. > > So, what I want to do is to load another OS loader, if grub (or more > specificly my kernel) fails. > > I know that UEFI supports this functionality (BootNext variable, UEFI > Spec 3.1.2) > "The boot manager is also required to initiate a boot of the boot option > specified by the BootNext variable as the first boot option on the next > boot, and only on the next boot. The boot manager removes the BootNext > variable before transferring control to the BootNext boot option" > > If the grub can modify BootNext, if would be just ideal! > > I also read, that grub has internal support for booting-once only > http://www.gnu.org/software/grub/manual/html_node/Booting-once_002donly.html#Booting-once_002donly > > But it is not really clear how does it check if the kernel fails - my > kernel just hangs or reboot the OS??? So, this option does not seem too > secure. I need 100% garanty that the GRUB will try to load only once, > and after that it will pass the loading to another OS I implemented/fixed up the boot once support in redhat's grub 1. How I used it was to set a flag which was cleared when fully booted up. This was all protected with a hardware watchdog which I started in grub's stage 1 (though often you can get them started by the BIOS). cheers, Pádraig.