[Libosinfo] [PATCH 5/5] fedora: Add generic entry for future releases

Zeeshan Ali (Khattak) zeeshanak at gnome.org
Thu Nov 21 17:52:57 UTC 2013


This is to ensure that we do recognise medias of future (pre-)releases of
Fedora and therefore give apps some clue about what they are dealing
with and some rough estimate of required resources.
---
 data/oses/fedora.xml.in | 52 +++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 52 insertions(+)

diff --git a/data/oses/fedora.xml.in b/data/oses/fedora.xml.in
index 06abc85..098f45e 100644
--- a/data/oses/fedora.xml.in
+++ b/data/oses/fedora.xml.in
@@ -1532,4 +1532,56 @@
       <script id='http://fedoraproject.org/scripts/fedora/desktop'/>
     </installer>
   </os>
+
+  <!-- Generic entry for future Fedora releases. Please update the 'upgrades',
+       'derives-from', 'volume-id' and 'resources' nodes accordingly each time
+       you add a new (specific) entry for a new release. -->
+  <os id="http://fedoraproject.org/fedora/unknown">
+    <short-id>fedora-unknown</short-id>
+    <_name>Fedora</_name>
+    <version>unknown</version>
+    <_vendor>Fedora Project</_vendor>
+    <family>linux</family>
+    <distro>fedora</distro>
+    <upgrades id="http://fedoraproject.org/fedora/20"/>
+    <derives-from id="http://fedoraproject.org/fedora/20"/>
+    <is-pre-release/>
+
+    <media arch="i686">
+      <iso>
+        <volume-id>Fedora ([2-9][1-9]|[0-9]{3,}).* i386</volume-id>
+        <system-id>LINUX</system-id>
+      </iso>
+    </media>
+    <media arch="x86_64">
+      <iso>
+        <volume-id>Fedora ([2-9][1-9]|[0-9]{3,}).* x86_64</volume-id>
+        <system-id>LINUX</system-id>
+      </iso>
+      <kernel>isolinux/vmlinuz</kernel>
+      <initrd>isolinux/initrd.img</initrd>
+    </media>
+
+    <media arch="i686" live="true">
+      <iso>
+        <volume-id>Fedora-Live-.*-i686-([2-9][1-9]|[0-9]{3,})</volume-id>
+        <system-id>LINUX</system-id>
+      </iso>
+    </media>
+    <media arch="x86_64" live="true">
+      <iso>
+        <volume-id>Fedora-Live-.*-x86_64-([2-9][1-9]|[0-9]{3,})</volume-id>
+        <system-id>LINUX</system-id>
+      </iso>
+    </media>
+
+    <resources arch="all">
+      <minimum>
+        <n-cpus>1</n-cpus>
+        <cpu>1000000000</cpu>
+        <ram>1073741824</ram>
+        <storage>10737418240</storage>
+      </minimum>
+    </resources>
+  </os>
 </libosinfo>
-- 
1.8.4.2




More information about the Libosinfo mailing list