Unix Technical Forum

Can you import old kernel .config file?

This is a discussion on Can you import old kernel .config file? within the Gentoo Linux Support forums, part of the Unix Operating Systems category; --> I've upgraded my kernel to 2.6.10 to 2.6.11 and I wondered if it was safe to load the .config ...


Go Back   Unix Technical Forum > Unix Operating Systems > Gentoo Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-21-2008, 10:34 AM
Andrew Walker
 
Posts: n/a
Default Can you import old kernel .config file?

I've upgraded my kernel to 2.6.10 to 2.6.11 and I wondered if it was safe
to load the .config file from the old kernel to the new. This is so I
don't have to keep manually adjusting the kernel options when I just want
an updated kernel.
It seems to work ok when I did it but can anyone confirm if this is
considered an acceptable practice and will it cause problems?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-21-2008, 10:35 AM
Malcolm
 
Posts: n/a
Default Re: Can you import old kernel .config file?

Andrew Walker wrote:
> I've upgraded my kernel to 2.6.10 to 2.6.11 and I wondered if it was safe
> to load the .config file from the old kernel to the new. This is so I
> don't have to keep manually adjusting the kernel options when I just want
> an updated kernel.
> It seems to work ok when I did it but can anyone confirm if this is
> considered an acceptable practice and will it cause problems?


Yeah man, just copy it over then instead of doping a `make menuconfig`
or what-have-you, run `make oldconfig`; then you can select the new
options or changed options in the new kernel
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-21-2008, 10:35 AM
Lars H.
 
Posts: n/a
Default Re: Can you import old kernel .config file?

Andrew Walker wrote:

> I've upgraded my kernel to 2.6.10 to 2.6.11 and I wondered if it was safe
> to load the .config file from the old kernel to the new. This is so I
> don't have to keep manually adjusting the kernel options when I just want
> an updated kernel.
> It seems to work ok when I did it but can anyone confirm if this is
> considered an acceptable practice and will it cause problems?


This is what I use, have worked so far

## cd /usr/src/linux
## cp /proc/config.gz .; gunzip config.gz; mv config .config
## genkernel --xconfig --oldconfig --gensplash all

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-21-2008, 10:35 AM
Anocha Yimsiriwattana
 
Posts: n/a
Default Re: Can you import old kernel .config file?

Malcolm wrote:

> Andrew Walker wrote:
>> I've upgraded my kernel to 2.6.10 to 2.6.11 and I wondered if it was safe
>> to load the .config file from the old kernel to the new. This is so I
>> don't have to keep manually adjusting the kernel options when I just want
>> an updated kernel.
>> It seems to work ok when I did it but can anyone confirm if this is
>> considered an acceptable practice and will it cause problems?

>
> Yeah man, just copy it over then instead of doping a `make menuconfig`
> or what-have-you, run `make oldconfig`; then you can select the new
> options or changed options in the new kernel


I just want to point out if you update from 2.4.x to 2.6.x, you can not use
the old config file. Not even `make oldconfig`. It really not working. You
need to config the whole thing via `make menuconfig' or `make xconfig'

Tom

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-21-2008, 10:36 AM
Peter Karlsson
 
Posts: n/a
Default Re: Can you import old kernel .config file?

"Lars H." <lars.hesdorf@mail.dk> wrote:

[snip]
> ## cp /proc/config.gz .; gunzip config.gz; mv config .config


$ zcat /proc/config.gz > .config

//Peter ;-)
--
My REAL email address is:
vim -c ":%s/^/CrgreUXneyffba@tznvy.pbz/|:normal ggVGg?"
"Rainbows are pretty. I don't know why I shoot at them."
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 07:52 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com