Re: [Powertop] [PATCH] report: Try /etc/lsb-release for OS information

Namhyung Kim <namhyung at gmail.com> Fri, 21 Sep 2012 00:07:27 +0900
Newsgroups dev.linux.lists.powertop
Message-ID <1348153647.1510.9.camel@leonhard>
2012-09-20 (목), 17:01 +0200, Arjan van de Ven:
> On 9/20/2012 4:58 PM, Namhyung Kim wrote:
> > Ubuntu doesn't provide /etc/{system,redhat,os}-release but
> > /etc/lsb-release file.  Since it's present on any LSB (Linux Standard
> > Base) compliant distributions, it'd better to try to read it.
> 
> it's obsolete though
> everyone has moved (or is moving) to /etc/os-release, which is a freedesktop standard
> and has pretty decent semantics...

Didn't know that.  But at least my desktop box doesn't have the
os-release yet.  Do you mind if we try the lsb-release file as a
fallback (as does in this patch)?

Thanks,
Namhyung