LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-25-2007, 05:57 PM   #1
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Rep: Reputation: 49
Merge Two Kernel config files


I am using Kernel version 2.6.18 and I use initrd image in the grub menu to boot my kernel.

Recently, someone posted his own Kernel Config file (2.6.19) file which is free from initrd support i.e. it does not require the initd line in the grub menu during the boot.

Now the problem is that my config file 2.6.18 is highly customized but I would like to get the changes from 2.6.19 file which are related to making initrd free kernel configuration.

Is there any way by which I can still retain all the settings of my 2.6.18 file and add the settings (to make initrd free) from 2.6.19 file to my existing 2.6.18 file?

Thanks
 
Old 07-25-2007, 09:57 PM   #2
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
The problem is that for the same settings you are going to have two different values. Which one is "correct"? For some settings, you want your customizations (config "A" get precedence) and for some you want the other setting (config "B" gets precedence). There's no way to automate such a configuration merge, because it's not a merge at all.

What you can do is diff the two configs to see where the changes are and select which you want. You'll then have to manually update your config with the new values.
 
Old 07-25-2007, 11:35 PM   #3
kushalkoolwal
Senior Member
 
Registered: Feb 2004
Location: Middle of nowhere
Distribution: Debian Squeeze
Posts: 1,249

Original Poster
Rep: Reputation: 49
Quote:
Originally Posted by macemoneta
The problem is that for the same settings you are going to have two different values. Which one is "correct"? For some settings, you want your customizations (config "A" get precedence) and for some you want the other setting (config "B" gets precedence). There's no way to automate such a configuration merge, because it's not a merge at all.

What you can do is diff the two configs to see where the changes are and select which you want. You'll then have to manually update your config with the new values.
Thanks for the info. I was thinking along the same lines but thought may be first I should ask the experts..:

should I just diff the regular way or are there any specific options that I need to give?

Alternatively, I was thinking if you know what changes one have to make in order to make your kernel free from initrd. I heard someone said that you need to compile the filesystem driver into the kernel and not the module. Do you know anything about it?

Thanks your help is much appreciated.
 
Old 07-25-2007, 11:49 PM   #4
macemoneta
Senior Member
 
Registered: Jan 2005
Location: Manalapan, NJ
Distribution: Fedora x86 and x86_64, Debian PPC and ARM, Android
Posts: 4,593
Blog Entries: 2

Rep: Reputation: 344Reputation: 344Reputation: 344Reputation: 344
I personally would probably open a meld (GUI diff) window on the two files, and go though the make xconfig on your config to change the needed options.
 
  


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
merge wav files linuxhippy Slackware 11 08-02-2021 12:41 AM
Default Kernel Config Files eyebrowsoffire Linux - General 31 10-05-2004 05:12 PM
Where is Linux Kernel Config Files ? rising_sun Linux - General 5 04-09-2003 08:21 PM
Kernel .config files under RH7.2 Paul_assheton Linux - Distributions 4 11-18-2002 02:34 AM
kernel config files ugenn Linux - General 7 07-01-2002 02:27 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 10:18 AM.

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