Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 40462

Summary: genkernel does not save config when compile fails
Product: Gentoo Hosted Projects Reporter: Filip Jirsák <Filip.Jirsak>
Component: genkernelAssignee: x86-kernel (DEPRECATED) <x86-kernel>
Status: RESOLVED INVALID    
Severity: minor    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: patch, which move code copying kernel configuration immediately after configuration is done.

Description Filip Jirsák 2004-02-05 03:43:31 UTC
When is something wrong and compile fails, .config is not copied into /etc/kernels. But perhaps I wish next compilation will be done with the nearly same configuration.

Reproducible: Always
Steps to Reproduce:
1. genkernel --menuconfig all
2. #break genkrenel after menuconfig - e.g. in make bzImage, make modules, install...
3. see /etc/kernels

Actual Results:  
Old (or none) version of kernel configuration in /etc/kernels

Expected Results:  
Copy .config into /etc/kernels, despite of compilation fails-
Comment 1 Filip Jirsák 2004-02-05 03:46:35 UTC
Created attachment 24997 [details, diff]
patch, which move code copying kernel configuration immediately after configuration is done.

Configuartion is copied before compilation can fail :-)
Comment 2 Brad House 2004-02-07 06:44:20 UTC
this will not be accepted for obvious reasons.  If the compile
fails, the config is most likely NOT GOOD.  The thing you need
to do is --no-mrproper --no-clean --menuconfig to genkernel, and
it will not override your config file, but will still enter
menuconfig.  If that compile is successful, it will copy the
result to /etc/kernels.
We will NOT ever copy a bad config to /etc/kernels because
it would cause too many problems with people not knowing they
need to rm -f the /etc/kernels config

-Brad