pcp
[Top] [All Lists]

Re: kernel.uname.distro on linux

To: nathans@xxxxxxxxxx
Subject: Re: kernel.uname.distro on linux
From: Arthur Kepner <akepner@xxxxxxx>
Date: Thu, 28 Oct 2010 08:09:04 -0700
Cc: pcp@xxxxxxxxxxx
In-reply-to: <1006593193.288291288219836347.JavaMail.root@xxxxxxxxxxxxxxxxxx>
References: <1527924827.287471288218960683.JavaMail.root@xxxxxxxxxxxxxxxxxx> <1006593193.288291288219836347.JavaMail.root@xxxxxxxxxxxxxxxxxx>
User-agent: Mutt/1.5.19 (2009-01-05)
On Thu, Oct 28, 2010 at 09:50:36AM +1100, nathans@xxxxxxxxxx wrote:
> 
> 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?
> 

Hi Nathan;

Reordering the list of files that are checked for 
'kernel.uname.distro' data so that "/etc/lsb-release" is 
the final entry would solve the problem that was reported to 
me. As long as that won't break things for other distributions 
it seems like the way to go. 

-- 
Arthur

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