Grub module to return partuuid of a device such as (hd0, gpt1) at boot time

2016-08-12 Thread Steve Kenton
it should be hard to do. Am I missing something obvious? And, before I jump end the deep end of the pool and try to write it, is anyone else working on something similar? Not subscribed, please cc me on reply. Steve Kenton ___ Grub-devel mailing

Re: Grub module to return partuuid of a device such as (hd0, gpt1) at boot time

2016-08-13 Thread Steve Kenton
partuuid rootfstype=ext4 console=tty1 quiet splash=silent } Below is my first pass at a solution. It's really pseudo code since I have not even tried to compile it yet. I was just getting familiar with the grub environment since I've never tinkered with it before. Lot's of

Re: Grub module to return partuuid of a device such as (hd0, gpt1) at boot time

2016-08-13 Thread Steve Kenton
ible no matter what creative re-configuration the dealers or end-users might have done to it. Steve Kenton On 08/13/2016 05:30 PM, adrian15 wrote: What's your use case? adrian15 El 12/08/16 a las 16:11, Steve Kenton escribió: As far as I can tell there is no search module that ca

Re: Grub module to return partuuid of a device such as (hd0, gpt1) at boot time

2016-08-14 Thread Steve Kenton
Thank you for the pointers and encouragement. I knew there had to be a better way and I will do as you suggest using probe etc with current source. I was just experimenting with the source that was already available with my current Buildroot setup as a proof of concept. Steve Kenton On 08

Adding partition guid/uuid to the probe command for use with Linux kernel command line root=PARTUUID=$guid

2016-08-14 Thread Steve Kenton
I have not look at NTFS yet, but is this more what you were wanting? I'm not sure about the printing, should grub_gpt_partentry.guid[16] change to a UUID struct? Steve Kenton diff --git a/grub-core/commands/probe.c b/grub-core/commands/probe.c index cf2793e..8ff4ff9 100644 --- a/grub

Re: Adding partition guid/uuid to the probe command for use with Linux kernel command line root=PARTUUID=$guid

2016-08-14 Thread Steve Kenton
I have not started testing yet, I'll do that after I have the NTFS Disk Identifier suff added. I just wanted to make sure I was headed in the right direction. I see I still need to make some adjustments and I'm talking to Nick now about how our proposals overlap. Thanks again, St

[PATCH 1/1] add --partuuid to probe

2016-08-16 Thread Steve Kenton
Supports both EFI and NT Disk Signature for passing to kernel as root=PARTUUID=$val Signed-off-by: Steve Kenton --- This passed light testing here, giving correct results for both types compared to blkid grub-core/commands/probe.c | 53 ++ 1 file

New Maintainers and Release Plans?

2016-08-20 Thread Steve Kenton
o probe" patch would be considered for it :-) since Nick Vinson understandably wants to know if it is acceptable before possibly changing his "Add PARTUUID detection support to grub-probe" patch set to use it. So, Wazzup with that? Steve Kenton ___

Re: New Maintainers and Release Plans?

2016-08-21 Thread Steve Kenton
hink It could be argued that with MBR fading away due to drives over 2TB and the corresponding increase in the use of GPT labels that something as small and self contained as probe command PARTUUID support might be "a good reason", especially given Grub's long

[PATCH 1/1] add --partuuid to probe

2017-02-14 Thread Steve Kenton
Support both EFI and NT Disk Signature for passing to kernel as root=PARTUUID=$val Signed-off-by: Steve Kenton --- It's been six months so I thought I'd resend this so it does not get lost in case I get hit by a meteor or something before the next release grub-core/commands/pr

Re: [PATCH 1/1] add --partuuid to probe

2017-02-14 Thread Steve Kenton
Nick, What is the state of your patch set? I think mine is much smaller if you want to roll it into yours and resubmit. We were told all along to wait until after 2.02, which should to be very soon, so it looks like it's show time! Steve Kenton On 02/14/2017 07:12 PM, Andrei Borz

[PATCH 1/1 V2] add --partuuid to probe

2017-02-18 Thread Steve Kenton
Signed-off-by: Steve Kenton --- V2 coding style changes as suggested in feedback In V1 I was treating p->index as an offset into the partition table instead of an index from 0-15 of the partition table slot needing to be multipled by the size of a gtp partition table entry. Is this correct? Th

[PATCH 1/1 V3] add --partuuid to probe

2017-02-21 Thread Steve Kenton
Support both EFI and NT Disk Signature for passing to kernel as root=PARTUUID=$val Signed-off-by: Steve Kenton --- V3 revert bogus index change it V2, more style cleanups, skip nested partitions This boots Ubuntu 16.04 properly, verified my checking /proc/cmdline However, on an embedded

Re: [PATCH 1/1 V3] add --partuuid to probe

2017-02-24 Thread Steve Kenton
On 02/21/2017 05:44 PM, Steve Kenton wrote: Support both EFI and NT Disk Signature for passing to kernel as root=PARTUUID=$val Signed-off-by: Steve Kenton --- V3 revert bogus index change it V2, more style cleanups, skip nested partitions This boots Ubuntu 16.04 properly, verified my

Re: [GRUB PARTUUID PATCH V3 4/5] Support both EFI and NT Disk Signature for passing to kernel as root=PARTUUID=$val

2017-02-27 Thread Steve Kenton
On 02/27/2017 05:54 AM, Andrei Borzenkov wrote: Отправлено с iPhone 27 февр. 2017 г., в 3:35, Vladimir 'phcoder' Serbinenko mailto:phco...@gmail.com>> написал(а): On Sun, Feb 26, 2017, 16:22 Nicholas Vinson <mailto:nvinson...@gmail.com>> wrote: From: St