Re: How to check if kernel sources are installed on a system?

From: Jesper Juhl
Date: Sun May 28 2006 - 16:39:23 EST


On 28/05/06, Arjan van de Ven <arjan@xxxxxxxxxxxxx> wrote:

/boot/config-`uname -r` goes a long way, and yes I'm ignoring the "but
users CAN clobber the file if they use enough violence against their
packaging system" argument entirely. That's just a bogus one.

You are also ignoring the fact that not all distros store configs
there (and/or under that name).


Also... why would there really be a need for such a way? Not for
building anything for sure.... it's for the human. And the human seems
to just find it already (and again the boot file works well in practice
it seems)


My personal favorite is /proc/config.gz . It has the very nice
property that even if I misplace my config file (or rebuild my tree
several times with different configs and don't save the one for my
running kernel) then I can always get the config for any of the
kernels I have installed, simply by booting it (or extracting it from
the kernel image).

--
Jesper Juhl <jesper.juhl@xxxxxxxxx>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/