[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to detect a debian kernel from `uname -r`

On Sun, Jan 08, 2006 at 08:43:29AM +0100, Andrea Arcangeli wrote:
> On Sun, Jan 08, 2006 at 08:31:50AM +0100, Sven Luther wrote:
> > You are not interested in recordying the debian abi number, or the flavour as
> > a subset of the architecture used ? This seems like interesting info.
> KLive wasn't originally designed to track distro packages, but mainline
> or/and self-built kernels. So at the moment there's simply no place to
> store this debian info in the db. I store the uname -m which provides
> some interesting info too. I could of course add abi and flavour, but
> I'd prefer to try to add stuff that can work for other distro too, so it
> needs more thoughts. Right now your /proc/version allows to reliably
> identify the branch (i.e. Debian) and the package version, so it's
> already very useful (and I already fixed the server code to parse it
> correctly ;).

You could simply add the two distro-specific information, the full package
name (2.6.14-2-amd64-k8) and the distro version number (2.6.14-7). I guess
other distros will have this same information, altough probably not included
in a way you will be able to parse it for now.

I think the subarch info at least will be valuable to you, as it maps directly
in additional often-intrusive patches, and will probably use a meaningful
name. it will be embedded in the uname -r name too, probably as


Sven Luther

Reply to: