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: signature.asc
Description: OpenPGP digital signature

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

Reply via email to