Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 352746 - sys-kernel/genkernel - blkid no LABEL or UUID anymore
Summary: sys-kernel/genkernel - blkid no LABEL or UUID anymore
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2011-01-25 20:14 UTC by loux thefuture
Modified: 2011-01-30 22:37 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description loux thefuture 2011-01-25 20:14:19 UTC
using latest genkernel >= 3.11.1, blkid in initramfs don't support LABEL or UUID anymore

Reproducible: Always

Steps to Reproduce:
1.emerge genkernel >= 3.11.1
2. build initramfs with it : genkernel --disklabel initramfs
3. try blkid inside linuxrc

Actual Results:  
all partitions listed

Expected Results:  
one partition matching LABEL=... or UUID=...
Comment 1 Sebastian Pipping gentoo-dev 2011-01-30 00:00:32 UTC
(In reply to comment #0)
> Actual Results:  
> all partitions listed

What do you mean by that?

Also, please paste
- your kernel boot options / grub entry
- genkernel call
- genkernel.conf used
Comment 2 loux thefuture 2011-01-30 11:30:50 UTC
1. emerge genkernel
2. build initramfs with genkernel --disklabel initramfs
3. append "debug" on the grub entrie
4. boot
5. in busybox (from debug) try blkid LABEL=... (ROOT for me)
6. output is all the partitions :(

this is the blkid of busybox and not the stand alone one, i don't know why ...

Loux
Comment 3 Sebastian Pipping gentoo-dev 2011-01-30 18:47:57 UTC
(In reply to comment #2)
> 5. in busybox (from debug) try blkid LABEL=... (ROOT for me)
> 6. output is all the partitions :(
> 
> this is the blkid of busybox and not the stand alone one, i don't know why ...

Excellent report - I was now able to re-produce the problem: In the initramfs currently /sbin/blkid is a symlink to busybox, whereas blkid of e2fsprogs resides in /bin/.  As /sbin is coming before /bin in $PATH, you always get busybox's blkid when running "blkid".

I have modified genkernel to copy the blkid binary into /sbin/ now:

http://git.overlays.gentoo.org/gitweb/?p=proj/genkernel.git;a=commitdiff;h=81e41d541d2d9acbf8b3f9ab1c51fbe6a6d19942

The command

  blikd -t LABEL=swap

now works for me from the debug shell.

Please emerge genkernel-99999 (five nines) to test this patch and report back. If it works for you too, you can have a release 3.4.12.5 in no time.
Comment 4 loux thefuture 2011-01-30 19:24:22 UTC
hello,

sounds good for me,
you copy blkid (stand-alone) on blkid (busybox) so i works,
why don't we remove the config busybox one ? (so no more blkid from busybox if disklabel is set) 
see you
loux
Comment 5 Sebastian Pipping gentoo-dev 2011-01-30 22:37:27 UTC
(In reply to comment #4)
> why don't we remove the config busybox one ? (so no more blkid from busybox if
> disklabel is set) 

I worry breaking other things, that we may not have thought of.

Release 3.4.12.5 just hit the main tree.
If you run into problems again, please open a new bug.