Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 40462 - genkernel does not save config when compile fails
Summary: genkernel does not save config when compile fails
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Hosted Projects
Classification: Unclassified
Component: genkernel (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: x86-kernel@gentoo.org (DEPRECATED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-05 03:43 UTC by Filip Jirsák
Modified: 2004-02-07 06:44 UTC (History)
0 users

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


Attachments
patch, which move code copying kernel configuration immediately after configuration is done. (genkernel.diff,721 bytes, patch)
2004-02-05 03:46 UTC, Filip Jirsák
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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