Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JI1fl-00050f-8l for mharc-grub-devel@gnu.org; Thu, 24 Jan 2008 07:59:13 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JI1fj-0004xW-6E for grub-devel@gnu.org; Thu, 24 Jan 2008 07:59:11 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JI1ff-0004tp-0E for grub-devel@gnu.org; Thu, 24 Jan 2008 07:59:09 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JI1fe-0004tX-Mo for grub-devel@gnu.org; Thu, 24 Jan 2008 07:59:06 -0500 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 1JI1fe-0007g9-A3 for grub-devel@gnu.org; Thu, 24 Jan 2008 07:59:06 -0500 Received: from [192.168.10.6] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1JI1fV-0007PA-9k for grub-devel@gnu.org; Thu, 24 Jan 2008 13:59:01 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1JI1dS-0001OE-4j for grub-devel@gnu.org; Thu, 24 Jan 2008 13:56:50 +0100 Date: Thu, 24 Jan 2008 13:56:50 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20080124125650.GJ2249@thorin> References: <1201161252.20596.95.camel@solid.paris.klabs.be> <87ir1jzkn9.fsf@xs4all.nl> <1201165138.20596.104.camel@solid.paris.klabs.be> <871w87ziiq.fsf@xs4all.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <871w87ziiq.fsf@xs4all.nl> Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: 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 12:59:11 -0000 On Thu, Jan 24, 2008 at 10:21:01AM +0100, Marco Gerards wrote: > > Robert, do you know if Guillem is still willing to work on this? I > thought you know him quite well, so I start asking you here. He had > some code two years ago when I met him at FOSDEM. IIRC the problem > was that we didn't have an elf.mod. We do have this now. Guillem says you must be confused. He was interested in adding support for kernel of FreeBSD, not grub-set-default. Franklin, implementing grub-set-default is relatively easy, and a good way to learn about how GRUB works. Basicaly, you just need to do something like add a variable similar to this one: ./kern/i386/pc/startup.S:VARIABLE(grub_install_dos_part) which is initialised in: ./util/i386/pc/grub-setup.c: + GRUB_KERNEL_MACHINE_INSTALL_DOS_PART); based on predefined offset in: ./include/grub/i386/pc/kernel.h:#define GRUB_KERNEL_MACHINE_INSTALL_DOS_PART 0x14 -- Robert Millan I know my rights; I want my phone call! What use is a phone call… if you are unable to speak? (as seen on /.)