[virt-tools-list] [libosinfo] Add generic Linux OS metadata

Daniel P. Berrange berrange at redhat.com
Tue Jun 21 11:13:48 UTC 2011


On Fri, Jun 17, 2011 at 06:20:39PM +0300, Zeeshan Ali wrote:
> From: "Zeeshan Ali (Khattak)" <zeeshanak at gnome.org>
> 
> ---
>  data/oses/Makefile.am       |   17 +++++++------
>  data/oses/generic-linux.xml |   55 +++++++++++++++++++++++++++++++++++++++++++
>  2 files changed, 64 insertions(+), 8 deletions(-)
>  create mode 100644 data/oses/generic-linux.xml
> 
> diff --git a/data/oses/Makefile.am b/data/oses/Makefile.am
> index cca64fa..87be72b 100644
> --- a/data/oses/Makefile.am
> +++ b/data/oses/Makefile.am
> @@ -1,12 +1,13 @@
>  
>  databasedir = $(pkgdatadir)/data/oses/
> -database_DATA = \
> -  fedora.xml    \
> -  rhel.xml      \
> -  centos.xml    \
> -  suse.xml      \
> -  mandriva.xml  \
> -  debian.xml    \
> -  ubuntu.xml
> +database_DATA =     \
> +  fedora.xml        \
> +  rhel.xml          \
> +  centos.xml        \
> +  suse.xml          \
> +  mandriva.xml      \
> +  debian.xml        \
> +  ubuntu.xml        \
> +  generic-linux.xml
>  
>  EXTRA_DIST = $(database_DATA)
> diff --git a/data/oses/generic-linux.xml b/data/oses/generic-linux.xml
> new file mode 100644
> index 0000000..88328e3
> --- /dev/null
> +++ b/data/oses/generic-linux.xml
> @@ -0,0 +1,55 @@
> +<libosinfo version="0.0.1">
> +
> +  <os id="http://kernel.org/linux/24">
> +    <short-id>linux24</short-id>
> +    <name>Generic 2.4.x kernel</name>
> +    <version>2.4</version>
> +    <vendor>Linux Kernel Developers</vendor>
> +  </os>
> +
> +  <os id="http://kernel.org/linux/26">
> +    <short-id>linux26</short-id>
> +    <name>Generic 2.6.x kernel</name>
> +    <version>2.6</version>
> +    <vendor>Linux Kernel Developers</vendor>
> +  </os>
> +
> +  <os id="http://kernel.org/linux/virtio/26">
> +    <short-id>linuxvirtio26</short-id>
> +    <name>Generic 2.6.25 or later kernel with virtio</name>
> +    <version>2.6</version>
> +    <vendor>Linux Kernel Developers</vendor>
> +
> +    <devices>
> +      <device id="http://pciids.sourceforge.net/v2.2/pci.ids/1af4/1000">
> +      <device id="http://pciids.sourceforge.net/v2.2/pci.ids/1af4/1001">
> +    </devices>
> +  </os>
> +
> +  <!-- Following clones only exists for backwards compatiblity reasons -->
> +
> +  <os id="http://kernel.org/generic/24">
> +    <short-id>generic24</short-id>
> +    <name>Generic 2.4.x kernel</name>
> +    <version>2.4</version>
> +    <vendor>Linux Kernel Developers</vendor>
> +    <clones id="http://kernel.org/linux/24"/>
> +  </os>
> +
> +  <os id="http://kernel.org/generic/26">
> +    <short-id>generic26</short-id>
> +    <name>Generic 2.6.x kernel</name>
> +    <version>2.6</version>
> +    <vendor>Linux Kernel Developers</vendor>
> +    <clones id="http://kernel.org/linux/26"/>
> +  </os>
> +
> +  <os id="http://kernel.org/virtio/26">
> +    <short-id>virtio26</short-id>
> +    <name>Generic 2.6.25 or later kernel with virtio</name>
> +    <version>2.6</version>
> +    <vendor>Linux Kernel Developers</vendor>
> +    <clones id="http://kernel.org/linux/virtio/26"/>
> +  </os>
> +
> +</libosinfo>

ACK


Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the virt-tools-list mailing list