Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 551708 - sys-kernel/genkernel-3.4.51.2 should support real_root=PARTUUID=*
Summary: sys-kernel/genkernel-3.4.51.2 should support real_root=PARTUUID=*
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2015-06-10 21:25 UTC by darkbasic
Modified: 2019-07-15 12:42 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
[PATCH UNTESTED] handle PARTUUID like UUID in genkernel (genkernel-partuuid.patch,1020 bytes, patch)
2015-08-07 15:25 UTC, Jeremi Piotrowski
Details | Diff
[PATCH] Handle PARTUUID like UUID in genkernel-next (genkernel-next-partuuid.patch,1.46 KB, patch)
2015-08-07 15:34 UTC, Jeremi Piotrowski
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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(-)