From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OD9h1-00027P-VH for mharc-grub-devel@gnu.org; Sat, 15 May 2010 01:13:44 -0400 Received: from [140.186.70.92] (port=39498 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OD9gy-00025D-DR for grub-devel@gnu.org; Sat, 15 May 2010 01:13:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OD9gw-0000GZ-KC for grub-devel@gnu.org; Sat, 15 May 2010 01:13:40 -0400 Received: from gateway11.websitewelcome.com ([69.93.179.16]:36611) by eggs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1OD9gv-0000Fp-Mm for grub-devel@gnu.org; Sat, 15 May 2010 01:13:37 -0400 Received: (qmail 4054 invoked from network); 15 May 2010 05:18:04 -0000 Received: from gator297.hostgator.com (74.53.228.114) by gateway11.websitewelcome.com with SMTP; 15 May 2010 05:18:04 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gibibit.com; h=Received:Date:From:To:Subject:Message-ID:In-Reply-To:References:X-Mailer:Mime-Version:Content-Type:Content-Transfer-Encoding; b=BprMfWe2Y4+jCDEjkH3cuSoM6arlJaGmvcE3k5Yjfii3xHQG1ks67ciG6LOc3TUofe5uBXPEgONuzTITonBMbwRW7EnZdfwmyDQuSP5aMBpy/P841zZ+oJjxBKpjueHI; Received: from c-67-185-87-185.hsd1.wa.comcast.net ([67.185.87.185]:46206 helo=svelte) by gator297.hostgator.com with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.69) (envelope-from ) id 1OD9gs-0003bU-GU for grub-devel@gnu.org; Sat, 15 May 2010 00:13:34 -0500 Date: Fri, 14 May 2010 22:13:32 -0700 From: Colin D Bennett To: grub-devel@gnu.org Message-ID: <20100514221332.366ff2a8@svelte> In-Reply-To: References: X-Mailer: Claws Mail 3.7.4 (GTK+ 2.20.0; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - gator297.hostgator.com X-AntiAbuse: Original Domain - gnu.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - gibibit.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: grub2 back to lilo ? 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: Sat, 15 May 2010 05:13:41 -0000 Perhaps instead of pre-generating the entire GRUB configuration (e.g. from a particular Distro like Ubuntu 9.10) things could be inserted into the main grub.cfg at GRUB boot time. Here's just a portion of what Ubuntu 10.04 puts in the generated grub.cfg (of course with a stern warning not to hand modify the file): ### BEGIN /etc/grub.d/10_linux ### menuentry 'Ubuntu, with Linux 2.6.32-22-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod ext2 set root='(hd0,3)' search --no-floppy --fs-uuid --set 534672c7-9930-407e-a13d-66a8e873a842 linux /vmlinuz-2.6.32-22-generic root=UUID=a5c8657b-e206-47d5-8cc2-30cc6cbfc77e ro quiet splash initrd /initrd.img-2.6.32-22-generic } ### etc. etc. Now what if specific OS parts could be separated out into another file, which could be referred to by GRUB at boot time. Something like: --- grub.cfg # General settings set timeout=10 set root='(hd0,3)' # OS-specific parts include ubuntu-10.04.cfg include macos.cfg include windows_xp.cfg --- ubuntu-10.04.cfg menuentry 'Ubuntu, with Linux 2.6.32-22-generic' --class ubuntu --class gnu-linux --class gnu --class os { recordfail insmod ext2 set root='(hd0,3)' search --no-floppy --fs-uuid --set 534672c7-9930-407e-a13d-66a8e873a842 linux /vmlinuz-2.6.32-22-generic root=UUID=a5c8657b-e206-47d5-8cc2-30cc6cbfc77e ro quiet splash initrd /initrd.img-2.6.32-22-generic } And so on. Regards, Colin