Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 243198 - genkernel real_root=LABEL= non-functional again
Summary: genkernel real_root=LABEL= non-functional again
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-22 11:26 UTC by Johan Ymerson
Modified: 2011-02-11 10:44 UTC (History)
3 users (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 Johan Ymerson 2008-10-22 11:26:40 UTC
genkernel 3.4.10 initramfs uses findfs from busybox to figure out what partition to mount as root, however, the version of busybox that ships with genkernel does not provide any findfs tool.

I suggest addinf findfs/tune2fs from e2fsprogs instead.


Reproducible: Always
Comment 1 Mike Auty (RETIRED) gentoo-dev 2008-10-22 12:59:21 UTC
Hiya Johan, could you please provide a little more information?  You say again, is there an earlier bug you're referring to, such as bug 229847?

Could you please attach your copy of /etc/genkernel.conf, write down the exact genkernel you use to create your kernel and also record the error message you receive when attempting to boot the system?

I'm going to mark this as NEEDINFO, but please just reopen this when you've got the information requested.  Thanks...  5:)
Comment 2 Steve Dibb (RETIRED) gentoo-dev 2009-06-29 00:39:33 UTC
I can provide some more info.  See bug 156640 where this supposedly was fixed, but it's reverted now.

Basically, linuxrc calls findfs, which isn't even an option in the 1.7.4 version of busybox, meaning real_root will fail.

                                if [ "${retval}" -ne '0' ]; then
                                        ROOT_DEV=`findfs "${REAL_ROOT}" 2>/dev/null`
                                        retval=$?
                                fi

                                if [ "$retval" -ne '0' ]; then
                                        ROOT_DEV=`busybox findfs "${REAL_ROOT}" 2>/dev/null`
                                        retval=$?
                                fi
Comment 3 Wormo (RETIRED) gentoo-dev 2009-07-02 05:45:51 UTC
Thanks for the clarification Steve. Assigning to maintainers.
Comment 4 Sebastian Pipping gentoo-dev 2011-01-11 17:17:07 UTC
If you

  a) set DISKLABEL="yes" in /etc/genkernel.conf or
  b) pass --disklabel to genkernel

the initrd will include blkid of e2fsprogs which can do resolution of labels as I understand.  Both of these way are supported in the latest stable version of genkernel (3.4.10.907).

Alternatively, genkernel-99999 (five nines) uses 1.18.1 which seems to contain findfs.  As of now I am unsure if genkernel compiles it with findfs enabled.

Please report back if that helps already.

If I do not hear anything in two weeks, I may close the bug.


Two side notes:

 - any ideas why both "findfs" and "busybox findfs" are called?
   as sys-apps/util-linux is not used, shouldn't that be the same?

 - this [1] seems to be the commit first introducing findfs to busybox,
   in case we need that informatiuon later.


[1] http://git.busybox.net/busybox/commit/?h=1_18_stable&id=de7684a309ad20c1b889d048d741cb1dd52245f7
Comment 5 Sebastian Pipping gentoo-dev 2011-02-11 10:44:20 UTC
(In reply to comment #4)
> If I do not hear anything in two weeks, I may close the bug.

Closing.