[Libguestfs] [PATCH] inspect: try to use /etc/os-release on Linux guests

Pino Toscano ptoscano at redhat.com
Wed Sep 9 14:01:43 UTC 2015


On Wednesday 09 September 2015 15:54:10 Olaf Hering wrote:
> Just poked around in my =libguestfs folder...
> 
> On Wed, Sep 09, Pino Toscano wrote:
> 
> > +    if (STRPREFIX (line, "ID=")) {
> 
> This is not handled:
> 
> NAME="SLES"
> VERSION="12"
> VERSION_ID="12"
> PRETTY_NAME="SUSE Linux Enterprise Server 12"
> ID="sles"
> ANSI_COLOR="0;32"
> CPE_NAME="cpe:/o:suse:sles:12"

That's because I don't have SLES disk images around :)

Can you please attach:
- the content of /etc/SuSE-release
- the XML outout of `virt-inspector -a $img`
so I can check whether adding just a two-line check on the ID will not
give less detailed information than what we get now.

Thanks,
-- 
Pino Toscano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://listman.redhat.com/archives/libguestfs/attachments/20150909/b2d48703/attachment.sig>


More information about the Libguestfs mailing list