All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Vladimir 'φ-coder/phcoder' Serbinenko" <phcoder@gmail.com>
To: The development of GNU GRUB <grub-devel@gnu.org>
Subject: Re: [RFC PATCH] Add new partition type API and convert GPT type checks.
Date: Tue, 23 Sep 2014 01:06:49 +0200	[thread overview]
Message-ID: <5420AB89.9070204@gmail.com> (raw)
In-Reply-To: <CAGr1u3tXADU3ehWZTtUN42CLGYno4rAp1t9rYs8rT+ohsBf_KQ@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 847 bytes --]

On 22.09.2014 22:03, Michael Marineau wrote:
> that is what I need to make use of and copying the code to re-read the
> type field yet again felt silly. My final goal is actually a module
> that will search for two partitions of the same type and select
> between them based on some other metadata. Since searching by
> partition type is already a common task in the grub code base
> providing an API to do so seemed like a good starting point. Others
> will likely find extending this to support label and uuid more useful.
> For example with GPT the Linux kernel can use
> "root=PARTUUID=<someuuid>" directly, unlike LABEL= or UUID= which must
> be implemented in an initrd.
Using partition type has proven to be unrelaiable in the past and grub2
uses as little of it as possible. Why can't your goals be achieved with
FS UUIDs?


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 213 bytes --]

  reply	other threads:[~2014-09-22 23:07 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-22 18:59 [RFC PATCH] Add new partition type API and convert GPT type checks Michael Marineau
2014-09-22 19:19 ` Andrei Borzenkov
2014-09-22 20:03   ` Michael Marineau
2014-09-22 23:06     ` Vladimir 'φ-coder/phcoder' Serbinenko [this message]
2014-09-22 23:49       ` Michael Marineau
2014-09-23 17:27         ` Andrei Borzenkov
2014-09-22 23:04 ` Vladimir 'φ-coder/phcoder' Serbinenko
2014-09-23  0:25   ` Michael Marineau

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=5420AB89.9070204@gmail.com \
    --to=phcoder@gmail.com \
    --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.