[Libosinfo] [PATCH libosinfo] oses: Add Ubuntu 14.04 LTS

Cole Robinson crobinso at redhat.com
Mon Sep 22 17:52:03 UTC 2014


Signed-off-by: Cole Robinson <crobinso at redhat.com>
---
I added the test data before making the volume ID lookup actually work,
yet 'make check' still passed... Does the test suite not ensure isodata
is mapped to a valid OS?

 data/oses/ubuntu.xml.in                            | 67 ++++++++++++++++++++++
 .../ubuntu14.04/ubuntu-14.04.1-desktop-i386.iso    | 29 ++++++++++
 2 files changed, 96 insertions(+)
 create mode 100644 test/isodata/ubuntu/ubuntu14.04/ubuntu-14.04.1-desktop-i386.iso

diff --git a/data/oses/ubuntu.xml.in b/data/oses/ubuntu.xml.in
index 3a5d248..78e9b2e 100644
--- a/data/oses/ubuntu.xml.in
+++ b/data/oses/ubuntu.xml.in
@@ -1316,4 +1316,71 @@
       <script id='http://ubuntu.com/scripts/ubuntu/jeos'/>
     </installer>
   </os>
+
+  <os id="http://ubuntu.com/ubuntu/14.04">
+    <short-id>ubuntu14.04</short-id>
+    <short-id>ubuntutrusty</short-id>
+    <_name>Ubuntu Trusty Tahr LTS</_name>
+    <version>14.04</version>
+    <_vendor>Canonical Ltd</_vendor>
+    <family>linux</family>
+    <distro>ubuntu</distro>
+    <codename>Trusty Tahr</codename>
+    <upgrades id="http://ubuntu.com/ubuntu/14.04"/>
+    <derives-from id="http://ubuntu.com/ubuntu/14.04"/>
+
+    <release-date>2014-04-26</release-date>
+    <eol-date>2019-04-01</eol-date>
+
+    <resources arch="all">
+      <minimum>
+        <cpu>1000000000</cpu>
+        <n-cpus>1</n-cpus>
+        <ram>1073741824</ram>
+        <storage>5368709120</storage>
+      </minimum>
+      <recommended>
+        <cpu>1000000000</cpu>
+        <ram>1073741824</ram>
+        <storage>16106127360</storage>
+      </recommended>
+    </resources>
+
+    <media arch="i686">
+      <url>http://releases.ubuntu.com/releases/trusty/ubuntu-14.04-server-i386.iso</url>
+      <iso>
+        <volume-id>Ubuntu-Server 14.04(.\d)? i386</volume-id>
+      </iso>
+      <kernel>casper/vmlinuz</kernel>
+      <initrd>casper/initrd.img</initrd>
+    </media>
+    <media arch="x86_64">
+      <url>http://releases.ubuntu.com/releases/trusty/ubuntu-14.04-server-amd64.iso</url>
+      <iso>
+        <volume-id>Ubuntu-Server 14.04(.\d)? amd64</volume-id>
+      </iso>
+      <kernel>casper/vmlinuz</kernel>
+      <initrd>casper/initrd.img</initrd>
+    </media>
+    <media arch="i686" live="true">
+      <url>http://releases.ubuntu.com/releases/trusty/ubuntu-14.04-desktop-i386.iso</url>
+      <iso>
+        <volume-id>Ubuntu 14.04(.\d)? LTS i386</volume-id>
+      </iso>
+      <kernel>casper/vmlinuz</kernel>
+      <initrd>casper/initrd.img</initrd>
+    </media>
+    <media arch="x86_64" live="true">
+      <url>http://releases.ubuntu.com/releases/trusty/ubuntu-14.04-desktop-amd64.iso</url>
+      <iso>
+        <volume-id>Ubuntu 14.04(.\d)? amd64</volume-id>
+      </iso>
+      <kernel>casper/vmlinuz</kernel>
+      <initrd>casper/initrd.img</initrd>
+    </media>
+
+    <installer>
+      <script id='http://ubuntu.com/scripts/ubuntu/jeos'/>
+    </installer>
+  </os>
 </libosinfo>
diff --git a/test/isodata/ubuntu/ubuntu14.04/ubuntu-14.04.1-desktop-i386.iso b/test/isodata/ubuntu/ubuntu14.04/ubuntu-14.04.1-desktop-i386.iso
new file mode 100644
index 0000000..1e2d1cb
--- /dev/null
+++ b/test/isodata/ubuntu/ubuntu14.04/ubuntu-14.04.1-desktop-i386.iso
@@ -0,0 +1,29 @@
+CD-ROM is in ISO 9660 format
+System id: 
+Volume id: Ubuntu 14.04.1 LTS i386
+Volume set id: 
+Publisher id: 
+Data preparer id: XORRISO-1.1.8 2011.11.20.173001, LIBISOBURN-1.1.8, LIBISOFS-1.1.6, LIBBURN-1.1.8
+Application id: 
+Copyright File id: 
+Abstract File id: 
+Bibliographic File id: 
+Volume set size is: 1
+Volume set sequence number is: 1
+Logical block size is: 2048
+Volume size is: 505344
+El Torito VD version 1 found, boot catalog is in sector 240
+Joliet with UCS level 3 found
+Rock Ridge signatures version 1 found
+Eltorito validation header:
+    Hid 1
+    Arch 0 (x86)
+    ID ''
+    Key 55 AA
+    Eltorito defaultboot header:
+        Bootid 88 (bootable)
+        Boot media 0 (No Emulation Boot)
+        Load segment 0
+        Sys type 0
+        Nsect 4
+        Bootoff 7AE7E 503422
-- 
2.1.0




More information about the Libosinfo mailing list