From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MPhI6-0001tg-BB for mharc-grub-devel@gnu.org; Sat, 11 Jul 2009 14:27:18 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MPhI4-0001tV-IH for grub-devel@gnu.org; Sat, 11 Jul 2009 14:27:16 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MPhI0-0001qb-2L for grub-devel@gnu.org; Sat, 11 Jul 2009 14:27:16 -0400 Received: from [199.232.76.173] (port=46724 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MPhHz-0001qY-R9 for grub-devel@gnu.org; Sat, 11 Jul 2009 14:27:11 -0400 Received: from aybabtu.com ([69.60.117.155]:37661) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MPhHz-0007v4-FK for grub-devel@gnu.org; Sat, 11 Jul 2009 14:27:11 -0400 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1MPgDD-000789-33 for grub-devel@gnu.org; Sat, 11 Jul 2009 19:18:11 +0200 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1MPhHw-0004pu-2K for grub-devel@gnu.org; Sat, 11 Jul 2009 20:27:08 +0200 Date: Sat, 11 Jul 2009 20:27:08 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20090711182708.GA18506@thorin> References: <20090704201846.GD27480@thorin> <20090707183933.GA14645@thorin> <1247033954.2895.9.camel@ct> <20090710171145.GB17114@thorin> <4A57B252.7080805@earthlink.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: 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.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 1) Subject: Re: Some ideas about new features of grub 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: Sat, 11 Jul 2009 18:27:17 -0000 On Sat, Jul 11, 2009 at 02:53:13PM +0800, Bean wrote: > On Sat, Jul 11, 2009 at 5:27 AM, BandiPat wrote: > > Actually Zenwalk provides os-prober as well.  The gentleman that provides > > the installer of our Grub2 uses os-prober to detect all OS's installed, so > > they may be added to the original grub.cfg.  Works very well, although not > > perfect, but we are pretty pleased with the results thus far. > > > > We also do not have to run any of the Grub2 programs after installing new > > kernels.  The developer of our installer patched Grub2 for Zenwalk, so that > > no changes were necessary after kernel updates.  He tried to offer this to > > you guys as well earlier, but got little response, so we use it for Zenwalk > > exclusively at the moment. > > Hi, > > IIRC, os-prober is a collection of shell script to detect os, but grub > already have them in util/grub.d. They have a different purpose. The other grub.d scripts are targeted at generating the _native_ boot setup. os-prober is meant for the rest. Our own scripts for native boot setup are more robust than the os-prober approach. For example, they can determine if Linux will support UUIDs by checking for /dev/by-uuid nodes, etc. > Another problem is the drive number. It's impossible to decide bios > drive number from inside linux, so we can't insert the correct > drivemap command required to boot DOS/Windows from secondary drive. > This information must be gathered at boot time. This is not a problem anymore. grub-mkconfig uses UUIDs in its default setup, and avoids hardcoding BIOS drive numbers. In the very weird situations in which this is not possible, it aborts install rather than hardcoding a drive number. -- Robert Millan The DRM opt-in fallacy: "Your data belongs to us. We will decide when (and how) you may access your data; but nobody's threatening your freedom: we still allow you to remove your data and not access it at all."