Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MHKvE-0001m4-6D for mharc-grub-devel@gnu.org; Thu, 18 Jun 2009 12:57:08 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHKvC-0001jS-T8 for grub-devel@gnu.org; Thu, 18 Jun 2009 12:57:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHKv8-0001Yu-Jk for grub-devel@gnu.org; Thu, 18 Jun 2009 12:57:06 -0400 Received: from [199.232.76.173] (port=57356 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHKv8-0001YP-F5 for grub-devel@gnu.org; Thu, 18 Jun 2009 12:57:02 -0400 Received: from mail-fx0-f224.google.com ([209.85.220.224]:33980) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MHKv7-0003YA-Qv for grub-devel@gnu.org; Thu, 18 Jun 2009 12:57:02 -0400 Received: by fxm24 with SMTP id 24so1764715fxm.42 for ; Thu, 18 Jun 2009 09:57:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=ly6dgPx8HAfQZXRhWbqNk5RfnhAbR7VTiwC0WxEjV3g=; b=GdFHV6JnpgIShQw18mYLAp6byFm9mI1vnvwMDUvAmBYAc25sFDlYMD6gOwHcARbSlR UjnwqmvIMg8MVz9Q7WXK6WdWpjiiir6pGKcszgwUIKJDVB9R3T9l7wC8YqbAK/CvrFRb 9iMx8p9+MWWrk6Oq5VOBJ7NibuB2lJwGtf+Xo= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=GgiqPX6wXbrFIWNphbCwdKCMI0HI+38OWT5ZnG80EJNxAuFCZqUqBxF4UTh0OcCLoo Ntb3m6RUD5nJA0tlt28W+c73GrBFPlWTbAN6MR0e9Yf/mhGTJwlWpHsSHojGYHMoVs5L XIV6Fw9SJ6/tk21SGY73vpsI0qBhaSiCLnyh0= MIME-Version: 1.0 Received: by 10.204.62.68 with SMTP id w4mr1532618bkh.93.1245344220553; Thu, 18 Jun 2009 09:57:00 -0700 (PDT) In-Reply-To: <1245175778.1926.17.camel@mj> References: <20090612204549.12859.42374.stgit@mj.roinet.com> <1245111326.11728.27.camel@mj> <1245175778.1926.17.camel@mj> Date: Thu, 18 Jun 2009 18:57:00 +0200 Message-ID: From: "Vladimir 'phcoder' Serbinenko" To: The development of GRUB 2 Content-Type: multipart/alternative; boundary=001636c92477e3a17c046ca24b6d X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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: Thu, 18 Jun 2009 16:57:07 -0000 --001636c92477e3a17c046ca24b6d Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On Tue, Jun 16, 2009 at 8:09 PM, Pavel Roskin wrote: > On Tue, 2009-06-16 at 12:30 +0200, Vladimir 'phcoder' Serbinenko wrote: > > > 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. > > Otherwise the filesystem needs improvement > > The great thing is that we don't even need the ability to read > directories, so we can support PXE and other very limited filesystems. > > > 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. > > Good idea. Do you want to implement it? > > The kernel side was easy. The patch is attached. Actually, I'm not > sure I got the disk ID right. I copied it from fs_uuid.c, but I need to > recheck it. > Update copyright year. I suggest putting new id in grub_disk_dev_id to the end. You also forgot to add it to grub-emu. Under qemu it worked well except that it wasn't autoloaded but I looked and seen that we have no module autoloading for device drivers, perhaps because some of them don't coexist well. Except issues mentioned patch looks fine and I think you can commit it even if we don't have userspace part yet > > We still need the userspace changes. > > -- > Regards, > Pavel Roskin > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel > > -- Regards Vladimir 'phcoder' Serbinenko --001636c92477e3a17c046ca24b6d Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

On Tue, Jun 16, 2009 at 8:09 PM, Pavel R= oskin <proski@gnu.or= g> wrote:
On Tue, 2009-06-16 at 12:30 +0200, Vladimir 'phcoder&= #39; Serbinenko wrote:

> =A0 =A0 =A0 =A0 I think we could implement partition addressing by a c= ontained
> =A0 =A0 =A0 =A0 filename.
> =A0 =A0 =A0 =A0 As long as GRUB can read the filesystem at all, it sho= uld be
> =A0 =A0 =A0 =A0 able to
> =A0 =A0 =A0 =A0 read filenames.
> Otherwise the filesystem needs improvement

The great thing is that we don't even need the ability to read directories, so we can support PXE and other very limited filesystems.

> =A0 =A0 =A0 =A0 =A0Then we would specify grub_prefix as
>
> =A0 =A0 =A0 =A0 (FILE=3D/boot/grub/FSID)/boot/grub
>
> =A0 =A0 =A0 =A0 FSID could be a random string or is could be the files= ystem
> =A0 =A0 =A0 =A0 UUID as read
> =A0 =A0 =A0 =A0 by the OS. =A0grub-setup would create such file and ha= rdcode the
> =A0 =A0 =A0 =A0 corresponding grub_prefix into core.img.
> Good idea. Do you want to implement it?

The kernel side was easy. =A0The patch is attached. =A0Actually, I= 9;m not
sure I got the disk ID right. =A0I copied it from fs_uuid.c, but I need to<= br> recheck it.
Update copyright year. I suggest putting new id in grub_d= isk_dev_id to the end. You also forgot to add it to grub-emu. Under qemu it= worked well except that it wasn't autoloaded but I looked and seen tha= t we have no module autoloading for device drivers, perhaps because some of= them don't coexist well. Except issues mentioned patch looks fine and = I think you can commit it even if we don't have userspace part yet

We still need the userspace changes.

--
Regards,
Pavel Roskin

_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel




--
Regards
Vladimir= 'phcoder' Serbinenko
--001636c92477e3a17c046ca24b6d--