On Wed, Jan 09, 2002 at 04:59:12PM -0800, Christopher Maujean wrote:
>
>is there any way to extract a kernel config from a compiled kernel?
>(assuming the source tree is no longer in the same state as when the
>kernel was compiled)
>

<working from fuzzy memory without a running Linux box on hand>
I believe one of the effects of "make install" is to put a config file
in /boot, and that the kernel will get fussy and not boot if it is not
there, so if your system can boot, look for it there.  I will follow up
when i've had a chance to look closer.

Under *BSD, there is a kernel config option to embed a config file in
the kernel, so 

$ strings $PATH_TO_KERNEL | less

would give you the config, assuming you'd used that option when you
compiled it.

-- 
"They that can give up essential liberty to obtain a little temporary safety 
deserve neither liberty nor safety."
- Benjamin Franklin, Historical Review of Pennsylvania, 1759.

Reply via email to