[Libosinfo] [PATCH 7/9] freebsd: Add FreeBSD 10.1 volume id

Christophe Fergeau cfergeau at redhat.com
Fri Sep 11 16:22:05 UTC 2015


Data provided by John Snow in
https://bugzilla.redhat.com/show_bug.cgi?id=1212599
---
 data/oses/freebsd.xml.in                           | 25 +++++++++++++++++++
 .../FreeBSD-10.1-RELEASE-amd64-dvd1.iso.txt        | 29 ++++++++++++++++++++++
 test/test-isodetect.c                              |  7 ++++++
 3 files changed, 61 insertions(+)
 create mode 100644 test/isodata/freebsd/freebsd10.1/FreeBSD-10.1-RELEASE-amd64-dvd1.iso.txt

diff --git a/data/oses/freebsd.xml.in b/data/oses/freebsd.xml.in
index d8f45b5..59c84d8 100644
--- a/data/oses/freebsd.xml.in
+++ b/data/oses/freebsd.xml.in
@@ -606,5 +606,30 @@
     </devices>
   </os>
 
+  <os id="http://freebsd.org/freebsd/10.1">
+    <short-id>freebsd10.1</short-id>
+    <_name>FreeBSD 10.1</_name>
+    <version>10.0</version>
+    <_vendor>FreeBSD Project</_vendor>
+    <family>freebsd</family>
+    <distro>freebsd</distro>
+    <upgrades id="http://freebsd.org/freebsd/10.0"/>
+    <derives-from id="http://freebsd.org/freebsd/10.0"/>
+
+    <release-date>2014-11-14</release-date>
+    <eol-date>2016-12-31</eol-date>
+
+    <devices>
+      <device id="http://pciids.sourceforge.net/v2.2/pci.ids/1af4/1000"/> <!-- virtio-net -->
+      <device id="http://pciids.sourceforge.net/v2.2/pci.ids/1af4/1001"/> <!-- virtio-block -->
+    </devices>
+
+    <media arch="x86_64">
+      <iso>
+        <system-id>FreeBSD</system-id>
+        <volume-id>10_1_RELEASE_AMD64_DVD</volume-id>
+      </iso>
+    </media>
+  </os>
 
 </libosinfo>
diff --git a/test/isodata/freebsd/freebsd10.1/FreeBSD-10.1-RELEASE-amd64-dvd1.iso.txt b/test/isodata/freebsd/freebsd10.1/FreeBSD-10.1-RELEASE-amd64-dvd1.iso.txt
new file mode 100644
index 0000000..3116f4d
--- /dev/null
+++ b/test/isodata/freebsd/freebsd10.1/FreeBSD-10.1-RELEASE-amd64-dvd1.iso.txt
@@ -0,0 +1,29 @@
+CD-ROM is in ISO 9660 format
+System id: FreeBSD
+Volume id: 10_1_RELEASE_AMD64_DVD
+Volume set id: 
+Publisher id: THE FREEBSD PROJECT.  HTTP://WWW.FREEBSD.ORG/
+Data preparer id: 
+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: 1262071
+El Torito VD version 1 found, boot catalog is in sector 19
+NO Joliet present
+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 14 20
diff --git a/test/test-isodetect.c b/test/test-isodetect.c
index 9b391b3..b48d8fb 100644
--- a/test/test-isodetect.c
+++ b/test/test-isodetect.c
@@ -382,6 +382,12 @@ START_TEST(test_windows)
 }
 END_TEST
 
+START_TEST(test_freebsd)
+{
+    test_one("freebsd");
+}
+END_TEST
+
 START_TEST(test_openbsd)
 {
     test_one("openbsd");
@@ -442,6 +448,7 @@ list_suite(void)
     tcase_add_test(tc, test_ubuntu);
     tcase_add_test(tc, test_debian);
     tcase_add_test(tc, test_windows);
+    tcase_add_test(tc, test_freebsd);
     tcase_add_test(tc, test_openbsd);
     tcase_add_test(tc, test_opensuse);
     tcase_add_test(tc, test_centos);
-- 
2.4.3




More information about the Libosinfo mailing list