Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 175188 - EVMS/xfs fails using genkernel
Summary: EVMS/xfs fails using genkernel
Status: RESOLVED NEEDINFO
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:
Depends on:
Blocks:
 
Reported: 2007-04-19 08:52 UTC by Michael Hordijk
Modified: 2008-03-14 16:13 UTC (History)
2 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 Michael Hordijk 2007-04-19 08:52:35 UTC
In bug 102006, a user reported a failure loading the XFS plugin and was able to get around it by simply deleting the xfs plugin before running genkernel.  I was not so fortunate, so I had to figure out what the problem was.

The first way to solve it, from a genkernel point of view, is to specify a log file that is writeable to evms_activate (/var/log does not exist).  Specifying:

evms_activate --log-file /temp/evms.log

Seems to work for me.  The deeper issue in evms however, is that the filesystem appears to be returning the wrong error code.  EVMS tests for XFS support my running mkfs.xfs and examining the output.  If mkfs.xfs doesn't exist, the process should return ENOENT (which it does under my normal boot).  But on the initramfs, the failed process returns EINVAL.  From the man page:

       ENOENT The file filename or a script or ELF interpreter does not exist, or a shared library needed for file or interpreter cannot be found.

       EINVAL An ELF executable had more than one PT_INTERP segment (i.e., tried to name more than one interpreter).

So we're clearly getting the wrong errno.  However, this is:

a) where my experience starts getting a little thin
b) where I start falling asleep

If someone else could take a look at it from here, that'd be great.

Reproducible: Always

Steps to Reproduce:
Comment 1 Chris Gianelloni (RETIRED) gentoo-dev 2007-06-21 19:58:26 UTC
OK.  My evms knowledge is pretty much non-existent.  Anyone else have any ideas?
Comment 2 Michael Hordijk 2007-06-22 18:42:37 UTC
I'm not sure that it's really evms' problem.  I think the kernel may be returning the wrong errno when evms_activate does a stat on mkfs.xfs.  I can dig deeper if need be.  I can't be the only one running EVMS of the initramfs.  Does anybody else run EVMS and not have any problems?
Comment 3 Tiziano Müller (RETIRED) gentoo-dev 2007-06-22 22:53:58 UTC
hmm, well, this might be kernel related. But I don't think that the problem is solely the non-existence of mkfs.xfs  because I don't have that one and I need evms starting in initramfs and it works.
Comment 4 Andrew Gaffney (RETIRED) gentoo-dev 2007-11-17 03:01:37 UTC
Is this even still an issue?
Comment 5 Andrew Gaffney (RETIRED) gentoo-dev 2008-03-14 16:13:48 UTC
Closing due to no response. Please reopen if this is still an issue and you have more information.