[KLUG Members] ipchains

Adam Tauno Williams members@kalamazoolinux.org
24 Jul 2001 08:05:48 -0400


>On a related note (and possibly helpful to this problem), is there a way to 
>extract the settings of a kernel to a file? For instance, the stock RH
>kernel is fine for me, but maybe I want to add or remove support for
some
>hardware or service. It would be cool if I could find out what is in
there
>right now, extract it to a file, load those settings in xconfig, and
tweak
>from there. When you run make mrproper, everything is pretty much reset
and
>you have to configure it to your liking. Is there a way to do this?

I don't know if you can get this information from a running binary
kernel.   But you can always keep the .config file from /usr/src/linux,
this stores your compile options.  Simply copy the .config from the root
of one kernel source tree to another, and then run it's config utility.
Even with .config you MUST MUST MUST run the config utility (make
menuconfig, make xconfig, whatever....) but you can simply save/exit as
this will update .config for whatever new/changed parameters exist.  I'm
assuming an older -> newer or same -> same kernel trees,  it may not
work going newer -> older.  When I checked I thought the RH source RPMs
contained the .config file,  but that was along time ago.