All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Roskin <proski@gnu.org>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: [PATCH] use UUIDs for cross-disk installs (Re: Issue with boot != root and chainloading)
Date: Sun, 27 Jul 2008 12:29:43 -0400	[thread overview]
Message-ID: <1217176183.4029.20.camel@ct> (raw)
In-Reply-To: <20080727121914.GA11242@thorin>

On Sun, 2008-07-27 at 14:19 +0200, Robert Millan wrote:

> > 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.

You are right, I'm thinking how to get rid of make_install_device().  It
looks wrong to me that we are converting binary data to text, which will
be parsed back to the binary data.  If we want to keep the GRUB core
aware of the textual device names, we should try to avoid the
binary-to-text conversion.

But it turns out that the binary format can represent something that the
text format cannot, namely "partition N on the current drive".  I think
it's an omission, since we have representation for files on the current
partition (the drive and partition part is omitted).

I'm thinking of implementing grub-install for PowerPC.  It should work
like yaboot because that's what it will likely replace.  In means that
the hfs boot partition may be short and not mounted.  Then it would be
better to put core.img there, perhaps with a wrapper script, and put all
modules and grub.cfg to /boot/grub, which will be on a native mounted
partition.  Thus it will be necessary to specify the root partition in
core.img.  It would be nice to implement it in a platform independent
way.

> 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.

I'm also concerned that UUID may not be unique.  For instance, a disk
was cloned, and a filesystem of the clone was modified without changing
the UUID.

-- 
Regards,
Pavel Roskin



  reply	other threads:[~2008-07-27 16:30 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-22 13:34 Issue with boot != root and chainloading Andy Kittner
2008-07-22 13:50 ` Pavel Roskin
2008-07-22 14:01   ` Felix Zielcke
2008-07-22 23:58     ` Pavel Roskin
2008-07-24  9:12     ` Felix Zielcke
2008-07-24 10:25       ` Felix Zielcke
2008-07-24 11:00     ` Felix Zielcke
2008-07-24 16:49       ` Pavel Roskin
2008-07-25 21:08         ` Robert Millan
2008-07-25 21:47           ` Pavel Roskin
2008-07-25 22:10             ` [PATCH] use UUIDs for cross-disk installs (Re: Issue with boot != root and chainloading) Robert Millan
2008-07-26  1:08               ` Pavel Roskin
2008-07-27 12:19                 ` Robert Millan
2008-07-27 16:29                   ` Pavel Roskin [this message]
2008-07-27 18:37                     ` Robert Millan
2008-07-27 19:28                       ` UUID boot on ieee1275 (Re: [PATCH] use UUIDs for cross-disk installs (Re: Issue with boot != root and chainloading)) Robert Millan
2008-07-27 20:13                         ` [PATCH] " Robert Millan
2008-07-27 20:36                           ` Robert Millan
2008-07-30 10:41                             ` Robert Millan
2008-08-03 11:09                       ` [PATCH] use UUIDs for cross-disk installs (Re: Issue with boot != root and chainloading) Isaac Dupree
2008-08-03 12:08                         ` Robert Millan
2008-08-03 12:23                           ` Robert Millan
2008-08-03 17:04                           ` Isaac Dupree
2008-08-03 19:19                             ` Treacherous Computing (Re: [PATCH] use UUIDs for cross-disk installs) Robert Millan
2008-07-27 18:27               ` [PATCH] use UUIDs for cross-disk installs (Re: Issue with boot != root and chainloading) Robert Millan
2008-07-30 10:43                 ` Robert Millan
2008-07-22 15:09   ` Issue with boot != root and chainloading Andy Kittner

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1217176183.4029.20.camel@ct \
    --to=proski@gnu.org \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.