pcp
[Top] [All Lists]

Re: kernel.uname.distro on linux

To: Arthur Kepner <akepner@xxxxxxx>
Subject: Re: kernel.uname.distro on linux
From: nathans@xxxxxxxxxx
Date: Thu, 28 Oct 2010 09:50:36 +1100 (EST)
Cc: pcp@xxxxxxxxxxx
In-reply-to: <1527924827.287471288218960683.JavaMail.root@xxxxxxxxxxxxxxxxxx>
Sender: nscott@xxxxxxxxxx
----- "Arthur Kepner" <akepner@xxxxxxx> wrote:

> (Second try - first message bounced because I hadn't subscribed 
> to the list.)
>  
> Hi Nathan (hope I've got the right address for you);
>  
> In commit a52a00a7 the way that 'kernel.uname.distro' is 
> determined on Linux changed, so that instead of returning 
> something like:
>  
> SUSE Linux Enterprise Server 11 (x86_64)
>  
> it now shows (if lsb is installed):
>  
> LSB_VERSION="core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64"
>  
> Is that change intentional? (I just got a bug report about 
> this.)

Hi Arthur,

Hmmm - at the time it seemed like a good idea - the contents
of lsb-release on Ubuntu are such that this was useful.  But,
it looks like the contents are completely different on other
distros ... argh!

The logic should change I think, to instead of defaulting to
/etc/lsb-release, to rather only using it as a fallback if no
better source of this info can be found - what do you think?

cheers.

-- 
Nathan

<Prev in Thread] Current Thread [Next in Thread>