Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JHwvi-0002s0-Rj for mharc-grub-devel@gnu.org; Thu, 24 Jan 2008 02:55:22 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JHwvh-0002rh-DS for grub-devel@gnu.org; Thu, 24 Jan 2008 02:55:21 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JHwve-0002pq-OM for grub-devel@gnu.org; Thu, 24 Jan 2008 02:55:20 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JHwve-0002pU-I9 for grub-devel@gnu.org; Thu, 24 Jan 2008 02:55:18 -0500 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 1JHwvd-0004IM-Sk for grub-devel@gnu.org; Thu, 24 Jan 2008 02:55:18 -0500 Received: from smtp8-g19.free.fr ([212.27.42.65]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JHwvd-0003Uh-7b for grub-devel@gnu.org; Thu, 24 Jan 2008 02:55:17 -0500 Received: from smtp8-g19.free.fr (localhost [127.0.0.1]) by smtp8-g19.free.fr (Postfix) with ESMTP id E504B17F51C for ; Thu, 24 Jan 2008 08:54:13 +0100 (CET) Received: from [192.168.0.20] (klabs.be [82.224.65.140]) by smtp8-g19.free.fr (Postfix) with ESMTP id 8C08117F548 for ; Thu, 24 Jan 2008 08:54:13 +0100 (CET) From: Franklin PIAT To: The development of GRUB 2 Content-Type: text/plain Date: Thu, 24 Jan 2008 08:54:12 +0100 Message-Id: <1201161252.20596.95.camel@solid.paris.klabs.be> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 Content-Transfer-Encoding: 7bit X-detected-kernel: by mx20.gnu.org: Linux 2.6 (newer, 3) X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) Subject: menu's "default=saved" is need for hibernation on multi-os systems. 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: Thu, 24 Jan 2008 07:55:21 -0000 Hello, Grub2 doesn't seems to have a feature similar to grub1 "default=saved" in menu.lst, does it ? On a multiboot system, it's important to have it : In my situation, Xen is first listed in the menu, but I usually boot plain kernel, which can Hibernate. After reboot, The first system is rebooted by default, which can cause lose of data. The problem would also occur if a user had two OS, and both mount a given partition. Hibernating the second OS, then booting the first could cause data loss too. Having default=saved drastically simplifies the situation : Before choosing another OS in the menu, one has to remember if the computer was hibernated last time. If in doubt let grub boot the previous OS. A more cleaver mechanism would even be better... - Like getting the OS to put a flag when booted, then remove it on shutdown. - Or actually each OS' hibernation status (ouch!) Franklin