From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1ICYyA-0008SD-Qx for mharc-grub-devel@gnu.org; Sun, 22 Jul 2007 06:47:22 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1ICYy8-0008Rz-U9 for grub-devel@gnu.org; Sun, 22 Jul 2007 06:47:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1ICYy7-0008Rn-F4 for grub-devel@gnu.org; Sun, 22 Jul 2007 06:47:19 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ICYy7-0008Rk-9h for grub-devel@gnu.org; Sun, 22 Jul 2007 06:47:19 -0400 Received: from qb-out-0506.google.com ([72.14.204.225]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1ICYy6-0000Na-Uj for grub-devel@gnu.org; Sun, 22 Jul 2007 06:47:19 -0400 Received: by qb-out-0506.google.com with SMTP id e6so1228505qbe for ; Sun, 22 Jul 2007 03:47:17 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:content-type:content-transfer-encoding; b=NQm2xvlyHCJtor/q5DAE2Fcb2gemhnbDxbO8IPa2rkzq8YtGEpd2cA9rVqHxuGF8hw7eZdyyFp2SWFzL0C26KLpB3y9qSU8HZ1o4wU0MewIJNC4k/tHnzfKmZssqzUpqtcwTzyQV5RX6Qt/QG5+5Jf2knW12s3mYdpac5j0wAEo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:content-type:content-transfer-encoding; b=Dskdp8xH0SoE/5F81o9n5bfexN1Pmf8SznTBisicz/4/IJMXEbj2V07rrl7G+KejwWxGfAOHfD5v0oSoQM4jINnXZ7e40Sh1leUeMhhVzMb5OmpLa8JBenfCLOz//5mn/5vNudj+dkwJK4MuWGwsScJ9XHat3JI8PpM5A7XyJ74= Received: by 10.67.21.11 with SMTP id y11mr3366357ugi.1185101237218; Sun, 22 Jul 2007 03:47:17 -0700 (PDT) Received: from ?192.168.1.9? ( [83.35.101.234]) by mx.google.com with ESMTPS id 2sm11203098nfv.2007.07.22.03.47.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sun, 22 Jul 2007 03:47:16 -0700 (PDT) Message-ID: <46A4B040.6070404@gmail.com> Date: Mon, 23 Jul 2007 15:42:24 +0200 From: adrian15 User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-kernel: Linux 2.6 (newer, 2) Subject: multidistro grub2 idea 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: Sun, 22 Jul 2007 10:47:21 -0000 THE PROBLEM ============= The problem about boot loaders in a multi distribution environment is the grub configurations being overlapped. Imagined this partition layout: part 1: windows part 2: ubuntu part 3: debian If you install first windows, then ubuntu and then debian is great possible that debian makes its menu.lst be the default one. It can also have the correct lines for booting ubuntu or it might have not them. I suppose that there is more complication when you run the update-grub command when a kernel has been updated. THE DISCUSSION ================ When there are multiple distros I've been regularly astonished of the ones that advice of copy-and-paste lines from other menu.lst and add it to your current one. And they are people that not even use copy-and-paste and advice to add the lines by hand. I think the problem is here is that no one knows that a command called configfile exists. In my computer I have 4 menu.lst and I have not used the configfile approach. I have installed grub in the distros' partition and also in the mbr which is associated with a grub installed on a /boot partition. Disk /dev/sda: 137.4 GB, 137437871104 bytes 255 heads, 63 sectors/track, 16709 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 1275 10241406 c W95 FAT32 (LBA) /dev/sda2 1276 1287 96390 83 Linux (/BOOT) /dev/sda3 1288 3719 19535040 83 Linux (DEBIAN) /dev/sda4 3720 16709 104342175 5 Extended /dev/sda5 3720 15147 91795378+ 83 Linux (/HOME) /dev/sda6 15148 16166 8185086 83 Linux (FEDORA) /dev/sda7 16167 16198 257008+ 82 Linux swap / Solaris /dev/sda8 16199 16709 4104576 83 Linux(TEST DISTROS) THE SOLUTION ============= I think that if grub2 is going to have scripting and so many new features we should take advantage of them and change the way computers do boot. #1) All Linux installers should set or reuse a ext2 partition next to the windows one as a /boot one where grub2 is installed. #2) /boot/grub/ will have a new folder called: /boot/grub/menu/ which will be filled with .cfg files from the different distros that are installed in a computer. As an example ubuntu installed on /dev/sda2 should have a ubuntu-sda2.cfg file in there. #3) grub2 should include tools to deal with this .cfg files from the linux environment. #4) /boot/grub/grub2.cfg will be used for determining which of the .cfg files inside /boot/grub/menu is the default one and which it is the timeout for it. (If only one .cfg file is found then timeout is 0). #5) The problems that happened when a distro had been patched for doing one thing or another one will not exist. Why? Because distros can take advantage of the modules in order to add its own enhacements to grub2. #6) /boot/grub/grub2.cfg security should be enhanced. What are your thoughts about this idea? adrian15