Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NHl43-0000Vb-0Y for mharc-grub-devel@gnu.org; Mon, 07 Dec 2009 16:24:15 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHl40-0000UI-Lu for grub-devel@gnu.org; Mon, 07 Dec 2009 16:24:12 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHl3w-0000Rr-Lx for grub-devel@gnu.org; Mon, 07 Dec 2009 16:24:12 -0500 Received: from [199.232.76.173] (port=58757 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHl3w-0000Rg-F4 for grub-devel@gnu.org; Mon, 07 Dec 2009 16:24:08 -0500 Received: from mail-ew0-f215.google.com ([209.85.219.215]:54674) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NHl3w-0006Z0-3f for grub-devel@gnu.org; Mon, 07 Dec 2009 16:24:08 -0500 Received: by ewy7 with SMTP id 7so6289283ewy.32 for ; Mon, 07 Dec 2009 13:24:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type; bh=oY1h0tfUxZ3yxRdc40iGo9ERSgwF0Px7ARXr0kWkk5s=; b=xC8TDepRGv7CbSq2VR0rF12cJhygJa6H2+waaKDqpEllVshbgt9ZvxtTWmCa3yeDLB tNQBmR+rCOrNvBg9W8otDBiiuM95Oec1VF/nwXDKeqoGaMVzUxp270LPK3XcdjTybAcS bCY/pCEcstn5OGdVHkKWgA70EdVitbw1koIgU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type; b=HY7fAbGzFjDfaMA3Z2CsWfWkndSzEMlWAwA1+Zciz2G239bUXX7DlzbT0qqmZ8E0P6 xiVPJfwPei0y+iQ5Zm5Vc7wuG7oMmSxkecPCV2KBC6N637OE9CKyRQbIcJ5zldQmTC8e 2VCjivfktCN7VhJL+RqjPluJXiNA7qa+C3Dow= Received: by 10.213.109.86 with SMTP id i22mr7746054ebp.20.1260221045783; Mon, 07 Dec 2009 13:24:05 -0800 (PST) Received: from debian.bg45.phnet (gprs01.swisscom-mobile.ch [193.247.250.1]) by mx.google.com with ESMTPS id 15sm3630600ewy.4.2009.12.07.13.24.01 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 07 Dec 2009 13:24:04 -0800 (PST) Message-ID: <4B1D7267.3080301@gmail.com> Date: Mon, 07 Dec 2009 22:23:51 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109) MIME-Version: 1.0 To: The development of GNU GRUB References: <20091206131026.GA24598@thorin> <20091206.172252.144134315.davem@davemloft.net> <20091207140516.GE5895@thorin> <20091207.115033.240951842.davem@davemloft.net> <20091207202339.GA10277@thorin> In-Reply-To: <20091207202339.GA10277@thorin> X-Enigmail-Version: 0.95.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enig1C781B1744500E92BE5050E0" X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: David Miller 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 21:24:13 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1C781B1744500E92BE5050E0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Robert Millan wrote: > On Mon, Dec 07, 2009 at 11:50:33AM -0800, David Miller wrote: > =20 >> From: Robert Millan >> Date: Mon, 7 Dec 2009 15:05:16 +0100 >> >> =20 >>> On Sun, Dec 06, 2009 at 05:22:52PM -0800, David Miller wrote: >>> =20 >>>> From: Robert Millan >>>> Date: Sun, 6 Dec 2009 14:10:26 +0100 >>>> >>>> =20 >>>>> grub-mkconfig generates a grub.cfg that relies on UUIDs instead >>>>> of hardcoding, etc. >>>>> =20 >>>> 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. >>>> =20 >>> I was referring to use of UUIDs internally by GRUB (e.g. the search c= ommand >>> instances grub-mkconfig generates). >>> =20 >> 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. >> =20 > > I'm afraid I missed that thread. In any case, we basically do/can do t= hree > things to paliate that problem: > > - Cache the prepare_grub_to_access_device() calls at the shell/mkconf= ig > 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 one= s > 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 :-) > > =20 Seth proposed a hinting technique: search --fs_uuid ... -s root --hint hd0,1 then hd0,1 will be checked first and only on failure it will revert to scanning --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enig1C781B1744500E92BE5050E0 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iF4EAREKAAYFAksdcmwACgkQNak7dOguQgn2wQEApQ97zKOSxAeEH9mIv+/ivBe4 HOXn8W+uptktkpOmv+IA/3iqigQnlwKzMCXj6z2+1QfBoopZdlaDSFdHXT9ZRb5b =aiRT -----END PGP SIGNATURE----- --------------enig1C781B1744500E92BE5050E0--