Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NHk7b-0006ul-07 for mharc-grub-devel@gnu.org; Mon, 07 Dec 2009 15:23:51 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHk7Y-0006ry-4A for grub-devel@gnu.org; Mon, 07 Dec 2009 15:23:48 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHk7T-0006m0-Mn for grub-devel@gnu.org; Mon, 07 Dec 2009 15:23:47 -0500 Received: from [199.232.76.173] (port=40082 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHk7T-0006ln-Fp for grub-devel@gnu.org; Mon, 07 Dec 2009 15:23:43 -0500 Received: from xvm-190-8.ghst.net ([217.70.190.8]:46156 helo=aybabtu.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NHk7T-0008Fv-1y for grub-devel@gnu.org; Mon, 07 Dec 2009 15:23:43 -0500 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1NHk7Q-0003Cb-Fn; Mon, 07 Dec 2009 21:23:40 +0100 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1NHk7P-0002hV-OA; Mon, 07 Dec 2009 21:23:39 +0100 Date: Mon, 7 Dec 2009 21:23:39 +0100 From: Robert Millan To: David Miller Message-ID: <20091207202339.GA10277@thorin> References: <20091206131026.GA24598@thorin> <20091206.172252.144134315.davem@davemloft.net> <20091207140516.GE5895@thorin> <20091207.115033.240951842.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20091207.115033.240951842.davem@davemloft.net> 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, 3) Cc: grub-devel@gnu.org Subject: Re: Broken common.rmk change 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: Mon, 07 Dec 2009 20:23:48 -0000 On Mon, Dec 07, 2009 at 11:50:33AM -0800, David Miller wrote: > From: Robert Millan > Date: Mon, 7 Dec 2009 15:05:16 +0100 > > > On Sun, Dec 06, 2009 at 05:22:52PM -0800, David Miller wrote: > >> From: Robert Millan > >> Date: Sun, 6 Dec 2009 14:10:26 +0100 > >> > >> > grub-mkconfig generates a grub.cfg that relies on UUIDs instead > >> > of hardcoding, etc. > >> > >> Well, for one thing I don't use initrd's for my Linux kernels, > >> therefore specifying root devices via UUIDs isn't going to work. > > > > I was referring to use of UUIDs internally by GRUB (e.g. the search command > > instances grub-mkconfig generates). > > Ok, but as noted in another thread this can make grub > very slow on ieee1275 systems as we are going to look > for the UUID on every ieee1275 device alias present and > there can be tons of those. I'm afraid I missed that thread. In any case, we basically do/can do three things to paliate that problem: - Cache the prepare_grub_to_access_device() calls at the shell/mkconfig layer (see util/grub.d/10_linux.in for an example). - Disk cache (kern/disk.c). - Adjust disk iteration order so that disks more likely to be the ones we're looking for show up first (e.g. on i386-pc we list hard disks before floppies or CD). Note that UUID search aborts as soon as a match is found; it doesn't iterate the whole list. More ideas welcome, of course :-) -- 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."