Differentiate 'distro' and 'distrofamily' in Sys::Guestfs::Lib
authorMatthew Booth <mbooth@redhat.com>
Thu, 16 Jul 2009 22:48:25 +0000 (23:48 +0100)
committerMatthew Booth <mbooth@redhat.com>
Fri, 17 Jul 2009 10:29:33 +0000 (11:29 +0100)
commit9e90b24c7d76489f93830377e3d7d3c37f36c30c
treed16cf0a6c997610cf92e9b3be77b46719eaa583e
parent2ab233b3124f4dd3e7c686de110d9a97cc525c18
Differentiate 'distro' and 'distrofamily' in Sys::Guestfs::Lib

Change distro in the output formally known as virt-inspector to reflect the
actual distro. Possible values are now: fedora, rhel, centos, scientific,
debian.

Add new distrofamily entry which is one of: redhat, debian. Currently all
distros except 'debian' are in the redhat family.

This allows you to, for example, select a RHEL/CentOS/Scientific Linux specific
kernel for installation rather than assuming they're all the same.

Note this also changes the behaviour of virt-inspector --query. It will now only
return rhel=yes for RHEL.
inspector/virt-inspector.pl
perl/lib/Sys/Guestfs/Lib.pm