Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 207895 - sys-kernel/genkernel-3.4.9 - variable OLDCONFIG has no effect
Summary: sys-kernel/genkernel-3.4.9 - variable OLDCONFIG has no effect
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Genkernel Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-28 13:57 UTC by Patrik Wenger
Modified: 2008-02-14 04:32 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 Patrik Wenger 2008-01-28 13:57:21 UTC
in /etc/genkernel.conf I can set OLDCONFIG to "yes" and "no" and even unset, "make oldconfig" is always run. I always get this output:

----------- BEGIN -----------
paddor@pantoo linux $ sudo genkernel --kernname=paddor.1 all
* Gentoo Linux Genkernel; Version 3.4.9
* Running with options: --kernname=paddor.1 all

* Linux Kernel 2.6.24-gentoo for x86_64...
* config: Using config from /etc/kernels/kernel-config-x86_64-2.6.24-gentoo
*         Previous config backed up to .config.bak
*         >> Running oldconfig...
* kernel: >> Cleaning...
----------- END (cutted) ---------

Also, it takes always the config of /etc/kernels/, although there exists an .config. This will just be backed up to .config.bak.
So I have to specify the edited config with --kernel-config or "on the fly" with MENUCONFIG="yes" or --menuconfig so menuconfig is invoked and I can set my settings.
Comment 1 Andrew Gaffney (RETIRED) gentoo-dev 2008-02-03 03:37:48 UTC
It looks like the logic for handling OLDCONFIG is a bit...weird. Looking at the code, if CLEAN is set to yes, oldconfig is executed regardless of what OLDCONFIG is set to.

The behavior you mention about using the previous config is "normal" for a kernel version that you've compiled before. If you want to use a different kconfig file, use the --kernel-config=<foo> option.
Comment 2 Andrew Gaffney (RETIRED) gentoo-dev 2008-02-03 06:14:33 UTC
I've committed a fix for this in SVN. However, disabling OLDCONFIG will not get you the results you want. That comment in genkernel.conf that said setting OLDCONFIG="yes" would disable the fetching of the kconfig from /etc/kernels/ was outdated. There is no code to do that.
Comment 3 Chris Gianelloni (RETIRED) gentoo-dev 2008-02-14 04:32:39 UTC
I just released genkernel 3.4.10_pre1, which has this fix included.  Feel free to REOPEN this bug or make a comment if it is not resolved.