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

Bug 378105

Summary: sys-kernel/genkernel: UUID/Label support for root_keydev and swap_keydev
Product: Gentoo Hosted Projects Reporter: Marc Perrudin <gentoo>
Component: genkernelAssignee: Gentoo Genkernel Maintainers <genkernel>
Status: RESOLVED FIXED    
Severity: enhancement CC: alexander, gef.kornflakes, marek
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: initrd.scripts.diff
initrd.scripts.diff
Another patch to fix this issue.

Description Marc Perrudin 2011-08-07 17:26:15 UTC
Genkernel doen't support UUID and Label for root_keydev and swap_keydev.

Reproducible: Always
Comment 1 Marc Perrudin 2011-08-07 17:27:19 UTC
Created attachment 282457 [details, diff]
initrd.scripts.diff

Here is a patch to add the feature.
Comment 2 Marc Perrudin 2011-08-07 22:03:54 UTC
Created attachment 282473 [details, diff]
initrd.scripts.diff

An other version of the patch.
Comment 3 Alexander Tsoy 2012-04-24 18:34:37 UTC
Similar problem with mounting of /usr partition by initramfs (>=sys-kernel/genkernel-3.4.25.1). Id doesn't understand UUID=/LABEL= in /etc/fstab.


I agree with Marc. A block with the same code

case "${BLABLABLA}" in
  UUID\=*|LABEL\=*)
...
...

is duplicated three or more times in linuxrc and init.scripts. Instead, there should be a reusable function like in a second attached patch.
Comment 4 Marek Sapota 2012-10-08 13:36:47 UTC
Created attachment 325994 [details, diff]
Another patch to fix this issue.

Any progress on this?

I didn’t check the bugzilla before I went on fixing the issue so I produced yet another patch for this.  Anyway that means we have three different patches and it would be cool if one of them made to the official repo.
Comment 5 Alexander Tsoy 2012-10-08 14:28:35 UTC
(In reply to comment #4)
> it would be cool if one of them made to the official repo.

It would be cool to integrate genkernel with dracut. See bug 330127 :)
Comment 6 Marek Sapota 2012-10-08 14:51:29 UTC
(In reply to comment #5)
> It would be cool to integrate genkernel with dracut. See bug 330127 :)

Looks like it is not there yet, so in the meantime can we get this feature in genkernel?=)
Comment 7 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2012-11-02 17:06:47 UTC
(In reply to comment #4)
> Created attachment 325994 [details, diff] [details, diff]
> Another patch to fix this issue.
> 
> Any progress on this?
> 
> I didn’t check the bugzilla before I went on fixing the issue so I produced
> yet another patch for this.  Anyway that means we have three different
> patches and it would be cool if one of them made to the official repo.

I have merged this version for 3.4.45