[Libosinfo] [osinfo-db PATCH 1/1] schema: Add installer-script attribute to medias

Fabiano Fidêncio fidencio at redhat.com
Fri Nov 23 14:09:56 UTC 2018


Currently we've installer-scripts set for OSes and a single OS may have
different medias which only part of them actually support installation
via install-scripts.

This is the case, for instance, with Fedora where Live medias do not
support installation scripts.

In order to give the apps a proper way to check whether a specific media
supports or not the install scripts, let's have this new boolean
attribute set for each of the medias.

The 'installer-script' attribute is intended to be "true" by default on
every OS that has support for install-scripts.

The XML will look like:
<os>
  <media arch="x86_64" installer-script="false">
    ...
  </media>

  <media arch="x86_64">
    ..
  </media>

  <installer>
    <script id='http://foo.bar/distro/foobar/desktop'/>
  </installer>
</os>

In the scenario above the first media shouldn't be used for
installation using scripts while the second should.

Signed-off-by: Fabiano Fidêncio <fidencio at redhat.com>
---
 data/schema/osinfo.rng.in | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/data/schema/osinfo.rng.in b/data/schema/osinfo.rng.in
index 22c39d6..d45cd79 100644
--- a/data/schema/osinfo.rng.in
+++ b/data/schema/osinfo.rng.in
@@ -367,6 +367,11 @@
           <ref name='bool'/>
         </attribute>
       </optional>
+      <optional>
+        <attribute name='installer-script'>
+          <ref name='bool'>
+        </attribute>
+      </optional>
       <optional>
         <attribute name='installer-reboots'>
           <ref name='num'/>
-- 
2.19.1




More information about the Libosinfo mailing list