LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 01-06-2004, 04:45 AM   #1
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
kernel update; what about the old configuration


At first I have to say, I'm not quite sure if this question even belongs to this forum...

I've tried to search these (and some others too) forums for a solution, but either my eyes can't see it or then there is no thread for it...well, either way, hopefully someone can tell me something (I found a page from Google yesterday, which had something like this inside it, but lost it and I'm not even sure if it could have helped..)

So, I'm going to upgrade my kernel from 2.4.20-something to a newer version. I've emerged the sources, so the next thing I should do is "make menuconfig" (or xconfig, but I prefer menuconfig). I've done this many times before - actually I think last time I used a "ready" kernel was when I had RH back in the days. Anyway, until this day I've always (when updating - or upgrading, should I say - my kernel to a newer one) done all the changes and choises from scratch. And you folks know, this takes some time.

So here's the question: is there _any_ way to "copy" at least a part of my old config to the new one? I have done quite a lot of "own" choises when dealing with different problems and devices in order to make them work as I want, and remembering all the different modules and other stuff isn't that easy. And when something gets forgotten, all the dirty work starts all over again, eating up my time.

It'd be nice to get the old choises copied or something, from the old config to the new one, and after that check the new one out and do some new changes if needed. It would be more than nice. But I assume copying the old .config to the new source directory won't do?

If some of you have an idea how to get this thing done, please tell me...or do I really have to do things all over again every single time I need to update kernel?
 
Old 01-06-2004, 04:59 AM   #2
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
Well, yes, copying your previous .config will work. If you're doing a major upgrade, like 2.4 to 2.6, there might be some issues, but otherwise there's no problem doing that.

John
 
Old 01-06-2004, 05:00 AM   #3
cjcuk
Member
 
Registered: Dec 2003
Distribution: Openwall, ~LFS
Posts: 128

Rep: Reputation: 15
Your choices are saved in a file, I think it is called $(LINUX_SRC)/.config (somebody verify or correct that?). However, it is not always advisable to copy configurations over, as options may have changed or new options may have been added. I have never bothered copying it over as I like to make sure what options are used each time. There is also `(EXPERIMENTAL)' code that becomes well enough tested to remove that tag, and I will sometimes then want those options too.
 
Old 01-06-2004, 05:09 AM   #4
b0uncer
LQ Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Original Poster
Rep: Reputation: Disabled
Ok, thanks for both of you. My original idea was to copy the old config (except that I wasn't sure if it works) and then look it quickly over to see if it needs something to be done.

And no, this isn't a major update...2.4.x to 2.4.y, so nothing that big.

By the way, what could happen if I would make a very big update, and it would happen that some options I had chosen in the old config would have been removed from the new one for some reason, and I would copy over my old config and compile it? This means, that I would have got an option(s) chosen that do not exist, but how would it affect the compilation process - I guess it'd start shooting error messages or what? This is, of course, just theoretical situation, but I've wondered that too...well, good I don't need to do that big things at least now

But thanks once more to you!
 
Old 01-06-2004, 05:19 AM   #5
jkobrien
Member
 
Registered: Jun 2003
Location: Dublin, Ireland
Distribution: Slackware, LFS, Ubuntu, RedHat, Slamd64
Posts: 507

Rep: Reputation: 30
I would guess that anything menuconfig doesn't understand in the .config file is ignored and when the new .config file is written they would be lost.

I think you are always safe copying over a previous .config file, but of course you should scan down through the menu for changes. There's always a list of changes available somewhere with each kernel release that you can look at too.

John
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems with NVIDIA drivers after kernel update with yast online update Sheytan Linux - Software 4 05-06-2007 10:27 AM
YaST Online Update(YOU) Kernel Update? batorma Linux - Newbie 9 10-30-2005 03:17 AM
YAST software update configuration MaestroC SUSE / openSUSE 3 10-06-2005 08:35 PM
how to update entries that has been changed in a configuration files Niceman2005 Linux - Software 1 11-17-2004 02:52 AM
Problems with NVIDIA drivers after kernel update with yast online update Sheytan Linux - Distributions 0 10-13-2004 11:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration