Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 148253 - sys-kernel/genkernel script should not write to /usr/share
Summary: sys-kernel/genkernel script should not write to /usr/share
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2006-09-19 14:52 UTC by kalium
Modified: 2007-04-05 15:00 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 kalium 2006-09-19 14:52:56 UTC
The script writes the initrd to /usr/share/genkernel/pkg/x86/cpio. Please put the output in the kernel source dir or /usr/src etc.
Comment 1 Christopher Byrne 2006-09-19 17:02:08 UTC
Actually, the initramfs and all the intermediate cache files should probably be written to /var/cache/genkernel (or some subfolder, like /var/cache/genkerne/<arch> for LFS complicance, plus it makes it much easier to clear the cache when genkernel is updated (as there is no switch to purge the cache)
Comment 2 Chris Gianelloni (RETIRED) gentoo-dev 2006-09-20 06:35:33 UTC
There's no need to CC people that are maintainers and on the alias.

Anyway, patches are welcome.  It cannot be made to write to the kernel directory, though, unless it also completely utilizes KBUILD_OUTPUT.  It would probably be preferable to stick it somewhere else under /var/tmp or /var/cache, as Salah pointed out.  Since this isn't a bug, per se, I'm changing to enhancement.
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2007-03-14 00:47:07 UTC
Well, this has actually been configurable (CACHE_DIR) in genkernel for a *very* long time now.  That being said, I've changed the default in SVN to point to /var/cache/genkernel/%%ARCH%% instead of /usr/share/genkernel/pkg/%%ARCH%% where it used to be set.
Comment 4 Chris Gianelloni (RETIRED) gentoo-dev 2007-04-05 15:00:59 UTC
This is fixed in genkernel 3.4.7 which is now in the tree.