From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KN5Eb-0006m7-J3 for mharc-grub-devel@gnu.org; Sun, 27 Jul 2008 08:20:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KN5Ea-0006k4-B6 for grub-devel@gnu.org; Sun, 27 Jul 2008 08:20:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KN5EY-0006fy-BR for grub-devel@gnu.org; Sun, 27 Jul 2008 08:20:19 -0400 Received: from [199.232.76.173] (port=51213 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KN5EY-0006fY-75 for grub-devel@gnu.org; Sun, 27 Jul 2008 08:20:18 -0400 Received: from aybabtu.com ([69.60.117.155]:43983) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KN5EX-00025n-SX for grub-devel@gnu.org; Sun, 27 Jul 2008 08:20:18 -0400 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1KN584-0000q7-WA for grub-devel@gnu.org; Sun, 27 Jul 2008 14:13:37 +0200 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1KN5DX-0003Bq-00 for grub-devel@gnu.org; Sun, 27 Jul 2008 14:19:15 +0200 Date: Sun, 27 Jul 2008 14:19:14 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20080727121914.GA11242@thorin> References: <20080722133416.GB5524@archvile> <20080722095021.p15u40gtyc88csco-cebfxv@webmail.spamcop.net> <3FA357AE49694559941A663191155DE2@fz> <5A50C2D990914B3F8A73A02D520E8DED@fz> <1216918145.22586.14.camel@dv> <20080725210840.GA19505@thorin> <1217022420.3957.3.camel@dv> <20080725221050.GA31179@thorin> <1217034532.6376.13.camel@dv> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1217034532.6376.13.camel@dv> 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.13 (2006-08-11) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: [PATCH] use UUIDs for cross-disk installs (Re: Issue with boot != root and chainloading) 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, 27 Jul 2008 12:20:20 -0000 On Fri, Jul 25, 2008 at 09:08:52PM -0400, Pavel Roskin wrote: > > As for single drive installs, we could also encode the prefix in the > text form, like "(hd0,5)/boot/grub" and obsolete the numerical partition > data. That would make make_install_device() unnecessary. On single drive installs we don't encode equivalent information; we set some variable to 5 and some variable to -1 (or was it -2?) which basicaly means: "partition 5, drive is the same you used to boot (and bios told you via %dx)" If we do that, it could happen that what we see as hd0 in userland is seen by BIOS as 0x81 -> hd1, hence breakage. > The only problem is that we should avoid hardcoding the drive. We need > a notation for partitions on the boot or the current drive, perhaps by > removing the drive name e.g. "(,5)/boot/grub" Ah; well, as explained above we do this already, just in a different way. > We could also use UUID for single-drive installs and fallback to the > partition prefix only if UUID is unsupported or the user requests not to > use UUID. Then it won't be a big deal if we hardcode the drive. Based on the rest of your mail I assume the goal you're pursuing here is deleting make_install_device(). The problem I see is that if you fallback when UUIDs are unsupported, you still need to have the code to handle the fallback case, even if it's rarely used. OTOH, since UUIDs are supported in all major FSs we have, I don't think it'd be such a big deal if we abort the install when they can't be probed. But then, this would need to be carefuly discussed IMHO, as it's a more radical change. -- Robert Millan I know my rights; I want my phone call! What good is a phone call… if you are unable to speak? (as seen on /.)