Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MGMKv-0006Vq-6d for mharc-grub-devel@gnu.org; Mon, 15 Jun 2009 20:15:37 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MGMKt-0006Vh-IP for grub-devel@gnu.org; Mon, 15 Jun 2009 20:15:35 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MGMKp-0006VV-7x for grub-devel@gnu.org; Mon, 15 Jun 2009 20:15:35 -0400 Received: from [199.232.76.173] (port=43601 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MGMKp-0006VS-4d for grub-devel@gnu.org; Mon, 15 Jun 2009 20:15:31 -0400 Received: from c60.cesmail.net ([216.154.195.49]:29718) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_SHA1:16) (Exim 4.60) (envelope-from ) id 1MGMKo-0006Fd-Kz for grub-devel@gnu.org; Mon, 15 Jun 2009 20:15:30 -0400 Received: from unknown (HELO smtprelay1.cesmail.net) ([192.168.1.111]) by c60.cesmail.net with ESMTP; 15 Jun 2009 20:15:28 -0400 Received: from [192.168.0.22] (static-72-92-88-10.phlapa.fios.verizon.net [72.92.88.10]) by smtprelay1.cesmail.net (Postfix) with ESMTPSA id BAF1134C6D for ; Mon, 15 Jun 2009 20:15:27 -0400 (EDT) From: Pavel Roskin To: The development of GRUB 2 In-Reply-To: References: <20090612204549.12859.42374.stgit@mj.roinet.com> Content-Type: text/plain Date: Mon, 15 Jun 2009 20:15:26 -0400 Message-Id: <1245111326.11728.27.camel@mj> Mime-Version: 1.0 X-Mailer: Evolution 2.26.2 (2.26.2-1.fc11) Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Subject: Re: [PATCH] Remove root drive support 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: Tue, 16 Jun 2009 00:15:35 -0000 On Tue, 2009-06-16 at 01:41 +0200, Vladimir 'phcoder' Serbinenko wrote: > I successfully tested this patch in qemu with both grub-mkrescue and > multiboot load grub2-by-grub2. As I see root drive was always set to > 0xFF and so this field is useless and as it's in size-critical part. > However reading grub-install revealed that cross-drive install would > fail if target filesystem has no UUIDs or if UUIDs are unsupported by > grub. Currently it includes following filesystems: > affs,afs,cpio/tar,hfs,jfs,minix,sfs, udf, ufs > As you can see it includes even important filesystems like ufs. Now > the question to discuss is whether we want to implement UUIDs for this > fileystems, let it be like it is or have a cross-drive install w/o > UUIDs. Even if we choose the last option I think root field still has > to be removed and we can just use non-UUID drive name for prefix I've committed the patch just before I got this message. I'm glad you didn't object. I think we could implement partition addressing by a contained filename. As long as GRUB can read the filesystem at all, it should be able to read filenames. Then we would specify grub_prefix as (FILE=/boot/grub/FSID)/boot/grub FSID could be a random string or is could be the filesystem UUID as read by the OS. grub-setup would create such file and hardcode the corresponding grub_prefix into core.img. grub_prefix should be writable by grub-setup, so I don't expect any problems. -- Regards, Pavel Roskin