Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 204087 - sys-kernel/genkernel-3.4.9_pre6 puts busybox bincache tarball in initramfs
Summary: sys-kernel/genkernel-3.4.9_pre6 puts busybox bincache tarball in initramfs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-02 17:54 UTC by Marek Szuba
Modified: 2008-01-12 00:51 UTC (History)
0 users

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


Attachments
genkernel-gen_initramfs.sh-rm_busybox_tar.patch (genkernel-gen_initramfs.sh-rm_busybox_tar.patch,565 bytes, patch)
2008-01-02 17:55 UTC, Marek Szuba
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marek Szuba archtester gentoo-dev 2008-01-02 17:54:46 UTC
Hello,

While building an initramfs image using the bincache package of busybox, genkernel places the bincache tarball into the subdirectory bin/ of the directory initramfs is built from and does not remove it after it has been unpacked; this causes the final initramfs image to become unnecessarily large. Attached you will find a patch which removes the tarball after it's been used. I suppose one could modify the script in question otherwise, i.e. have it unpack the tarball directly from the cache directory and thus skip both the copying and the removal altogether.
Comment 1 Marek Szuba archtester gentoo-dev 2008-01-02 17:55:09 UTC
Created attachment 139890 [details, diff]
genkernel-gen_initramfs.sh-rm_busybox_tar.patch
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2008-01-11 23:42:17 UTC
Thank you for the patch.  I fixed it to extract directly from the BUSYBOX_BINCACHE, rather than copying it.
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2008-01-12 00:51:17 UTC
This should be resolved in genkernel 3.4.9, which will be hitting the tree shortly.  If this is still an issue with that version, please REOPEN this bug (or comment, if you cannot REOPEN it).