Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NHbny-0000JF-Io for mharc-grub-devel@gnu.org; Mon, 07 Dec 2009 06:31:02 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NHbnw-0000ID-C0 for grub-devel@gnu.org; Mon, 07 Dec 2009 06:31:00 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NHbnr-0000EM-Fg for grub-devel@gnu.org; Mon, 07 Dec 2009 06:30:59 -0500 Received: from [199.232.76.173] (port=40463 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NHbnr-0000E7-28 for grub-devel@gnu.org; Mon, 07 Dec 2009 06:30:55 -0500 Received: from mail-fx0-f213.google.com ([209.85.220.213]:63998) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NHbnq-0001vZ-E6 for grub-devel@gnu.org; Mon, 07 Dec 2009 06:30:54 -0500 Received: by fxm5 with SMTP id 5so4466382fxm.8 for ; Mon, 07 Dec 2009 03:30:53 -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=MMVYX4X6DlnECuU+NnnUYYDDSedREL3sbMHdo0mSq6w=; b=GY4yjaLMAAnlCo3E5s3ZGIv++GExYQTrzVM1KE/7CPZ7FKOS4J0tO1bAhRkUCEmVVz 67IG4B7RF3tRcO3xT3FyazkR8PNv7xYi4rT3ZkPIYzxJt0hYaKCYd6Rvzl4WHG6TmCqh MzfSXEDO1bP8wzWftK1X233HsbQtE1jh02rYI= 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=xv4iCxpayTIL5LsmEvU5kI+mDAOyrqewQZMSLqFbt1PtZJW70e/F7zbRrnvlafxUF/ b9H/tAgYzoyzEmOivbLePOTukIsQ6nvOXyUWzhjfYwG0tpG9in8pvLIeXiajfV6Ve7he 4MR9F3/tYg5dCWYKL3aJQYv99vU9w759knEKM= Received: by 10.87.62.29 with SMTP id p29mr5631269fgk.31.1260185453307; Mon, 07 Dec 2009 03:30:53 -0800 (PST) Received: from debian.bg45.phnet (94-12.0-85.cust.bluewin.ch [85.0.12.94]) by mx.google.com with ESMTPS id 12sm28582829fgg.7.2009.12.07.03.30.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Mon, 07 Dec 2009 03:30:52 -0800 (PST) Message-ID: <4B1CE764.8070003@gmail.com> Date: Mon, 07 Dec 2009 12:30:44 +0100 From: =?UTF-8?B?VmxhZGltaXIgJ8+GLWNvZGVyL3BoY29kZXInIFNlcmJpbmVua28=?= User-Agent: Mozilla-Thunderbird 2.0.0.22 (X11/20091109) MIME-Version: 1.0 To: David Miller References: <20091206131026.GA24598@thorin> <20091206.172252.144134315.davem@davemloft.net> <4B1CDD67.20801@gmail.com> <20091207.031725.188441811.davem@davemloft.net> In-Reply-To: <20091207.031725.188441811.davem@davemloft.net> X-Enigmail-Version: 0.95.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="------------enigE41E670E0EDD5A89CB256879" X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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 11:31:01 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigE41E670E0EDD5A89CB256879 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable David Miller wrote: > From: Vladimir '=CF=86-coder/phcoder' Serbinenko > Date: Mon, 07 Dec 2009 11:48:07 +0100 > > =20 >> The problem actually is the following: >> When we're in OS we know the OS device name but not the firmware devic= e >> name. So we're able to generate correct root=3D for kernel command lin= e >> but can only guess which names you would need for grub's set root=3D. = The >> solution we're going for is to have UUID of fs stored in grub.cfg and = go >> through all partitions on boot and find the right one nd set it to roo= t >> variable. As for passing root=3D kernel parameter the decision of usin= g >> device name or UUID=3D is based on heuristics (sigh) but you can disab= le >> them altogether in /etc/default/grub: >> >> # Uncomment if you don't want GRUB to pass "root=3DUUID=3Dxxx" paramet= er to >> Linux >> #GRUB_DISABLE_LINUX_UUID=3Dtrue >> =20 > > UUIDs are convenient but can be very time consuming. > > Some sparc64 systems come with 10 or 20 block OpenFirmware device > aliases, and we're going probe all of them, one by one, to look for > the UUID. > > The firmware device name is so trivially obtainable, especially on > ieee1275. That's what the grub-ofpathname tool I wrote does on > sparc64. And it's what the 'ofpathname' script used by powerpc on > grub does as well. > > =20 I think we can go for the approach Seth Goldberg proposed: UUID with hint. First we check if hinted device has correct UUID and if so we return it, if not we do the search --=20 Regards Vladimir '=CF=86-coder/phcoder' Serbinenko --------------enigE41E670E0EDD5A89CB256879 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 iF4EAREKAAYFAksc52sACgkQNak7dOguQgkumAEAhqt1u1dnXEFv4Idiq3uV6aG8 l/93pX9IvO2G4OTQeaIBAJ0R0Fo7borwMPfUFHi2gjuzNOatp6QebMa4sUiCgB6v =MwbT -----END PGP SIGNATURE----- --------------enigE41E670E0EDD5A89CB256879--