From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JjUao-00053N-NQ for mharc-grub-devel@gnu.org; Wed, 09 Apr 2008 03:19:38 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JjUan-00053G-Hh for grub-devel@gnu.org; Wed, 09 Apr 2008 03:19:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JjUaj-0004z8-Ub for grub-devel@gnu.org; Wed, 09 Apr 2008 03:19:36 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JjUaj-0004yz-RK for grub-devel@gnu.org; Wed, 09 Apr 2008 03:19:33 -0400 Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JjUae-00027I-R0 for grub-devel@gnu.org; Wed, 09 Apr 2008 03:19:33 -0400 Received: from c60.cesmail.net ([216.154.195.49]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JjUaS-0007E8-Bf for grub-devel@gnu.org; Wed, 09 Apr 2008 03:19:16 -0400 Received: from unknown (HELO relay.cesmail.net) ([192.168.1.81]) by c60.cesmail.net with ESMTP; 09 Apr 2008 03:19:08 -0400 Received: from [192.168.1.28] (pool-96-227-102-7.phlapa.east.verizon.net [96.227.102.7]) by relay.cesmail.net (Postfix) with ESMTP id A65C4619058 for ; Wed, 9 Apr 2008 03:19:08 -0400 (EDT) From: Pavel Roskin To: The development of GRUB 2 In-Reply-To: References: Content-Type: text/plain Date: Wed, 09 Apr 2008 03:19:07 -0400 Message-Id: <1207725547.8539.101.camel@rd> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-3.fc8) Content-Transfer-Encoding: 7bit X-detected-kernel: by mx20.gnu.org: Genre and OS details not recognized. X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) Subject: Re: Booting into a different entry without changing grub.conf 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, 09 Apr 2008 07:19:37 -0000 On Wed, 2008-04-09 at 10:01 +0300, Mark Ryden wrote: > Hello, > > I have in my grub.conf this entry: default=0. grub.conf was used in GRUB 1 only, which should be discussed in bug-grub@gnu.org. GRUB 2 uses grub.cfg. > This entry has the original kernel and initrd which came with my Linux > distribution. > Instead of booting to the first entry (default=0) , I want to reboot into the > second entry (which will point to a linux kernel I had build myself > for tests). > ; but **withouth** changing the (default=0) entry > in grub.conf to the second grub entry (which contains paths to images which > are selected for boot when default=1); this because in > case I will have a panic when booting (which sometimes occur, for > various reasons) > , I want to be able to reboot the machine immedaitely back to default=0. > (In order that I will NOT have the panic again) > Is it possible ? GRUB 1 has "savedefault" for that. Adding "savedefault 0" to the second entry would tell grub to boot the first entry next time. GRUB 2 doesn't have such facility yet. -- Regards, Pavel Roskin