Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 551708

Summary: sys-kernel/genkernel-3.4.51.2 should support real_root=PARTUUID=*
Product: Gentoo Hosted Projects Reporter: darkbasic <darkbasic>
Component: genkernelAssignee: Gentoo Genkernel Maintainers <genkernel>
Status: RESOLVED FIXED    
Severity: normal CC: jeremi.piotrowski
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: [PATCH UNTESTED] handle PARTUUID like UUID in genkernel
[PATCH] Handle PARTUUID like UUID in genkernel-next

Description darkbasic 2015-06-10 21:25:48 UTC
Booting with real_root=PARTUUID= leads to a "is not a valid root device" error, while real_root=/dev/sdx or real_root=UUID= do both work flawlessly.
Comment 1 Jeremi Piotrowski 2015-08-07 15:25:22 UTC
Created attachment 408486 [details, diff]
[PATCH UNTESTED] handle PARTUUID like UUID in genkernel
Comment 2 Jeremi Piotrowski 2015-08-07 15:34:56 UTC
Created attachment 408488 [details, diff]
[PATCH] Handle PARTUUID like UUID in genkernel-next

This patch deals with genkernel-next while the patch in comment #1 addresses genkernel. I have only tested genkernel-next and can confirm it works.

Both of them just add treating PARTUUID like UUID/LABEL since those cases forward to utilities that are already prepared to handle PARTUUID (2 out of 3, busybox findfs doesn't).

I consider this change to be important since PARTUUID is the only thing that the kernel can actually read without help (of the 3 UUID/LABEL/PARTUUID). If something is wrong with the initramfs the kernel can try to mount root on its own, which is useful for people that don't use initramfs for anything critical (for me it only starts plymouth early on).
Comment 3 Richard Yao (RETIRED) gentoo-dev 2015-08-26 18:08:54 UTC
Thanks for the patch. This should have been marked with the PATCH keyword. This will likely be merged when someone has a chance to review it and verify its behavior.
Comment 4 Larry the Git Cow gentoo-dev 2019-07-15 12:42:11 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=405dc98a73e99b867f16eaf30501e32dedb3f2ee

commit 405dc98a73e99b867f16eaf30501e32dedb3f2ee
Author:     Thomas Deutschmann <whissi@gentoo.org>
AuthorDate: 2019-07-15 12:40:15 +0000
Commit:     Thomas Deutschmann <whissi@gentoo.org>
CommitDate: 2019-07-15 12:40:15 +0000

    initramfs: Add PARTUUID= support for devices
    
    Will require genkernel initramfs built with --disklabel parameter.
    
    Closes: https://bugs.gentoo.org/551708
    Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>

 defaults/initrd.scripts | 4 ++--
 defaults/linuxrc        | 8 ++++----
 2 files changed, 6 insertions(+), 6 deletions(-)