Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 156640 - genkernel initramfs won't work with root=LABEL=<label> due to busybox config
Summary: genkernel initramfs won't work with root=LABEL=<label> due to busybox config
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2006-11-29 11:08 UTC by Kent Hulick
Modified: 2007-01-04 09:21 UTC (History)
0 users

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 Kent Hulick 2006-11-29 11:08:36 UTC
The initramfs created by genkernel won't allow a root device specified using the root=LABEL=<label> option.  Tracing through the linuxrc I found that it's (of course) trying to use findfs (which doesn't exist in the initramfs) then trying to use the findfs component of busybox when that fails.  However, findfs isn't configured into busybox so this also fails, and the REAL_ROOT is never found.

The solution is to add the following to /usr/share/genkernel/x86/busy-config:
CONFIG_TUNE2FS=y
CONFIG_FINDFS=y

This can be easily resolved by unrolling the busybox source tarball (/usr/share/genkernel/pkg/busybox-1.1.3+gentoo.tar.bz2) somewhere, coping the default busybox config (/usr/share/genkernel/x86/busy-config) to .config in the same folder and running "make menuconfig". Enable the following:
Linux Ext2 FS Progs-->
    [*] tune2fs
    [*]   findfs
Then delete /usr/share/genkernel/pkg/x86/busybox-1.1.3+gentoo-x86.bz2 to force genkernel to rebuild busybox and rerun genkernel.
Comment 1 Kent Hulick 2006-11-29 11:10:27 UTC
Oops.  After running make menuconfig, the modified .config must be copied back to the busy-config before running genkernel:
cp .config /usr/share/genkernel/x86/busy-config
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2006-12-13 09:51:21 UTC
OK.  I've updated this in subversion...
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2007-01-04 09:21:37 UTC
Fixed in 3.4.6