[Libosinfo] [osinfo-db PATCH v2 1/5] schema: Add support for pre-installed images
Fabiano Fidêncio
fidencio at redhat.com
Thu Nov 1 12:45:06 UTC 2018
Let's create a new element called "image", which will be added to the
"os" element.
By adding the new "image" element, we'll start supporting pre-installed
images, at least in order to provide their link to Apps consuming
osinfo-db.
The xml entry will be similar to:
<os>
<image arch="x86_64">
<variant id="cloud"/>
<url>https://download/foo/bar.img</url>
</image>
</os>
https://gitlab.com/libosinfo/osinfo-db/issues/10
Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
data/schema/osinfo.rng.in | 24 ++++++++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/data/schema/osinfo.rng.in b/data/schema/osinfo.rng.in
index 6693391..c376416 100644
--- a/data/schema/osinfo.rng.in
+++ b/data/schema/osinfo.rng.in
@@ -473,6 +473,27 @@
</element>
</define>
+ <define name='image'>
+ <element name='image'>
+ <attribute name='arch'>
+ <ref name='archnames'/>
+ </attribute>
+ <interleave>
+ <optional>
+ <element name='variant'>
+ <attribute name='id'>
+ </attribute>
+ </element>
+ </optional>
+ <optional>
+ <element name='url'>
+ <ref name='url'/>
+ </element>
+ </optional>
+ </interleave>
+ </element>
+ </define>
+
<define name='installer'>
<element name='installer'>
<zeroOrMore>
@@ -543,6 +564,9 @@
<zeroOrMore>
<ref name='tree'/>
</zeroOrMore>
+ <zeroOrMore>
+ <ref name='image'/>
+ </zeroOrMore>
<zeroOrMore>
<ref name='installer'/>
</zeroOrMore>
--
2.19.1
More information about the Libosinfo
mailing list