Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to get same settings from old kernel into new kernel?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
cayenne
l33t
l33t


Joined: 17 Oct 2002
Posts: 945
Location: New Orleans

PostPosted: Sat Dec 12, 2009 8:18 pm    Post subject: How to get same settings from old kernel into new kernel? Reply with quote

Hi all,

I'm just wondering if there is any good trick to this.

I have a mythtv box I need to do major upgrades to. This involves getting and rolling a new kernel..a few versions in between.

It took me forever (and I can't find my notes) to get all the kernel parameter, and a ton of them are modules....I'm wondering if there is a quick way to ensure I get them all set for the next kernel.

I usually use make menuconfig to set up the kernel....but, it seems this set up changes every time you do a different kernel (things are arranged differently, etc).

In this method...it is also a PITA to go through most every possibility, and hitting Help to see what the module name is if you select M....and sometimes in the help they don't say what it even is...

I though about trying somehow, to go directly into the .config that it generates...but, in there it doesn't say what the module names are that are generated if you set it that way....

So, I don't see an easy way to go through my autoconfig.modules file, get the names of the modules I have there...and translating that into a new kernel config...

Is there something I'm missing? Is there a tool or method ya'll use to more easily keep the same settings between kernels...and just have to worry about the new things you got the kernel for?

Thanks in advance...

cayenne
_________________
Light travels faster than sound. This is why some people appear bright until you hear them speak.........
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54793
Location: 56N 3W

PostPosted: Sat Dec 12, 2009 8:22 pm    Post subject: Reply with quote

cayenne,

Copy the .config file from the old kernel to the new kernel
In the new kernel, run
Code:
make oldconfig

It will silently delete options that have been removed, copy over unchanged options and ask you about new things.
The bigger the gap between the old and new kernels, the more questions you get asked and the more scope for errors.

When its done, you have a legal .config file for the new kernel. Look it over in
Code:
make menuconf

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum