inspect: Add detection of Gentoo.
[libguestfs.git] / inspector / virt-inspector.rng
index 2b1b5b4..cd9d422 100644 (file)
@@ -23,7 +23,7 @@
         <element name="operatingsystem">
           <interleave>
 
-            <!-- required fields for an operating system -->
+            <optional><element name="root"><text/></element></optional>
             <element name="name">
               <choice>
                 <value>linux</value>
               </choice>
             </element>
             <element name="arch"><text/></element>
-            <element name="root"><text/></element>
-
-            <!-- optional fields for an operating system -->
             <optional><element name="distro"><text/></element></optional>
             <optional><element name="product_name"><text/></element></optional>
-            <optional><element name="major_version"><text/></element></optional>
-            <optional><element name="minor_version"><text/></element></optional>
+            <element name="major_version"><text/></element>
+            <element name="minor_version"><text/></element>
+            <optional><element name="windows_systemroot"><text/></element></optional>
+
             <optional><element name="package_format"><text/></element></optional>
             <optional><element name="package_management"><text/></element></optional>
 
             <ref name="mountpoints"/>
             <ref name="filesystems"/>
             <optional><ref name="applications"/></optional>
-            <optional><ref name="modprobealiases"/></optional>
-            <optional><ref name="initrds"/></optional>
-            <optional><ref name="kernels"/></optional>
-            <optional><ref name="boot"/></optional>
 
           </interleave>
         </element>
         <element name="filesystem">
           <attribute name="dev"><text/></attribute>
           <interleave>
-            <element name="type"><text/></element>
-            <optional><element name="content"><text/></element></optional>
+            <optional><element name="type"><text/></element></optional>
             <optional><element name="label"><text/></element></optional>
             <optional><element name="uuid"><text/></element></optional>
-            <optional><element name="spec"><text/></element></optional>
           </interleave>
         </element>
       </oneOrMore>
       <zeroOrMore>
         <element name="application">
           <element name="name"><text/></element>
-          <optional><element name="epoch"><text/></element></optional>
-          <element name="version"><text/></element>
-          <element name="release"><text/></element>
-          <element name="arch"><text/></element>
-        </element>
-      </zeroOrMore>
-    </element>
-  </define>
-
-  <!-- contents of /etc/modprobe* -->
-  <define name="modprobealiases">
-    <element name="modprobealiases">
-      <zeroOrMore>
-        <element name="alias">
-          <attribute name="device"><text/></attribute>
-          <interleave>
-            <element name="modulename"><text/></element>
-            <optional><element name="augeas"><text/></element></optional>
-            <element name="file"><text/></element>
-          </interleave>
-        </element>
-      </zeroOrMore>
-    </element>
-  </define>
-
-  <!-- initrd images found -->
-  <define name="initrds">
-    <element name="initrds">
-      <zeroOrMore>
-        <element name="initrd">
-          <attribute name="version"><text/></attribute>
-          <zeroOrMore>
-            <element name="module"><text/></element>
-          </zeroOrMore>
-        </element>
-      </zeroOrMore>
-    </element>
-  </define>
-
-  <!-- boot configurations -->
-  <define name="boot">
-    <element name="boot">
-      <zeroOrMore>
-        <element name="config">
-          <optional>
-            <attribute name="default"><value>1</value></attribute>
-          </optional>
-          <interleave>
-            <element name="title"><text/></element>
-            <element name="kernel"><text/></element>
-            <element name="cmdline"><text/></element>
-          </interleave>
-        </element>
-      </zeroOrMore>
-    </element>
-  </define>
-
-  <!-- kernels -->
-  <define name="kernels">
-    <element name="kernels">
-      <zeroOrMore>
-        <element name="kernel">
-          <attribute name="version"><text/></attribute>
-          <attribute name="arch"><text/></attribute>
-          <interleave>
-            <element name="modules">
-              <zeroOrMore>
-                <element name="module"><text/></element>
-              </zeroOrMore>
-            </element>
-            <optional><element name="path"><text/></element></optional>
-            <optional><element name="package"><text/></element></optional>
-          </interleave>
+          <optional><element name="version"><text/></element></optional>
+          <optional><element name="release"><text/></element></optional>
         </element>
       </zeroOrMore>
     </element>