Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 194695 - sys-kernel/genkernel-3.4.9_pre3 fails on building initramfs
Summary: sys-kernel/genkernel-3.4.9_pre3 fails on building initramfs
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:
Depends on:
Blocks:
 
Reported: 2007-10-04 11:26 UTC by Åsmund Grammeltvedt
Modified: 2007-10-30 20:31 UTC (History)
1 user (show)

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


Attachments
proposed patch (genkernel_append_aux.patch,467 bytes, patch)
2007-10-04 11:28 UTC, Åsmund Grammeltvedt
Details | Diff
Now without cruft (genkernel_append_aux.patch,430 bytes, patch)
2007-10-04 11:32 UTC, Åsmund Grammeltvedt
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Åsmund Grammeltvedt 2007-10-04 11:26:30 UTC
genkernel initrd fails when trying to append busybox to the initrd.
It looks like this is caused by append_auxilary() in gen_initramfs.sh, which cd's to a directory which it then deletes, leaving append_busybox() to crash tar when run from the non-existent directory.

Reproducible: Always

Actual Results:  
* busybox: >> Copying to cache...
* initramfs: >> Initializing...
*         >> Appending base_layout cpio data...
*         >> Appending auxilary cpio data...
*         >> Appending busybox cpio data...
tar: Cannot save working directory: No such file or directory
tar: Error is not recoverable: exiting now
* ERROR: Could not extract busybox bincache!
Comment 1 Åsmund Grammeltvedt 2007-10-04 11:28:35 UTC
Created attachment 132548 [details, diff]
proposed patch

Applying this patch allows the initramfs to be built.
Comment 2 Åsmund Grammeltvedt 2007-10-04 11:32:01 UTC
Created attachment 132549 [details, diff]
Now without cruft
Comment 3 Andrew Gaffney (RETIRED) gentoo-dev 2007-10-04 11:56:02 UTC
Hmm, that's weird that we haven't run into that before. Thanks for the patch. This is in SVN.
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2007-10-30 20:31:56 UTC
Please test genkernel 3.4.9_pre4 and make sure this is fixed for you.  Thanks