temp checkin
This commit is contained in:
parent
c38b581e16
commit
f7404b0aa3
2
aif.xml
2
aif.xml
@ -3,7 +3,7 @@
|
|||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:schemaLocation="https://aif.square-r00t.net aif.xsd">
|
xsi:schemaLocation="https://aif.square-r00t.net aif.xsd">
|
||||||
<storage>
|
<storage>
|
||||||
<disk name="sda" type="gpt">
|
<disk device="sda" type="gpt">
|
||||||
<part num="1" size="10%" fstype="ef00" />
|
<part num="1" size="10%" fstype="ef00" />
|
||||||
<part num="2" size="90%" fstype="8300" />
|
<part num="2" size="90%" fstype="8300" />
|
||||||
</disk>
|
</disk>
|
||||||
|
37
aif.xsd
37
aif.xsd
@ -3,30 +3,51 @@
|
|||||||
targetNamespace="https://aif.square-r00t.net"
|
targetNamespace="https://aif.square-r00t.net"
|
||||||
xmlns="https://aif.square-r00t.net"
|
xmlns="https://aif.square-r00t.net"
|
||||||
elementFormDefault="qualified">
|
elementFormDefault="qualified">
|
||||||
|
<!-- GLOBAL CUSTOM DATA TYPES -->
|
||||||
|
<xs:simpleType name="diskdev">
|
||||||
|
<xs:restriction base="xs:string">
|
||||||
|
<xs:pattern value="^/dev/[A-Za-z_/]+[0-9]+" />
|
||||||
|
</xs:restriction>
|
||||||
|
</xs:simpleType>
|
||||||
|
|
||||||
|
<xs:attribute name="device" type="diskdev" />
|
||||||
|
|
||||||
<xs:element name="aif">
|
<xs:element name="aif">
|
||||||
<xs:complexType>
|
<xs:complexType>
|
||||||
<xs:sequence>
|
<xs:all>
|
||||||
<xs:element name="storage" maxOccurs="unbounded" minOccurs="1">
|
|
||||||
|
<xs:element name="storage" minOccurs="1">
|
||||||
<xs:complexType>
|
<xs:complexType>
|
||||||
<xs:sequence>
|
<xs:sequence>
|
||||||
<xs:element name="disk">
|
<xs:element name="disk" maxOccurs="unbounded" minOccurs="1">
|
||||||
<xs:complexType>
|
<xs:complexType>
|
||||||
<xs:element name="type" type="xs:string" /><!-- TODO: custom type. gpt, bios, etc. -->
|
<xs:attribute ref="device"/>
|
||||||
<!-- NOTE: this should be the node.<xs:element name="name" type="xs:string" />device, e.g. 'sda' -->
|
<xs:complexContent>
|
||||||
<xs:element name="part" type="xs:string" />
|
<xs:choice minOccurs="1">
|
||||||
|
<xs:element name="gpt" type="diskfmt" />
|
||||||
|
<xs:element name="bios" type="diskfmt" />
|
||||||
|
</xs:choice>
|
||||||
|
</xs:complexContent>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
</xs:complexType>
|
</xs:complexType>
|
||||||
</xs:element>
|
</xs:element>
|
||||||
|
<!--
|
||||||
|
|
||||||
<xs:element ref="mount" maxOccurs="unbounded" minOccurs="1" />
|
<xs:element ref="mount" maxOccurs="unbounded" minOccurs="1" />
|
||||||
<xs:element ref="network" maxOccurs="unbounded" minOccurs="1" />
|
<xs:element ref="network" maxOccurs="unbounded" minOccurs="1" />
|
||||||
|
<xs:element ref="scripts" maxOccurs="unbounded" minOccurs="0" />
|
||||||
|
-->
|
||||||
|
</xs:all>
|
||||||
|
</xs:complexType><!--
|
||||||
|
<xs:complexType>
|
||||||
|
<xs:sequence>
|
||||||
<xs:element ref="system" maxOccurs="1" minOccurs="1" />
|
<xs:element ref="system" maxOccurs="1" minOccurs="1" />
|
||||||
<xs:element ref="user" maxOccurs="1" minOccurs="1" />
|
<xs:element ref="user" maxOccurs="1" minOccurs="1" />
|
||||||
<xs:element ref="pacman" maxOccurs="1" minOccurs="1" />
|
<xs:element ref="pacman" maxOccurs="1" minOccurs="1" />
|
||||||
<xs:element ref="bootloader" maxOccurs="1" minOccurs="1" />
|
<xs:element ref="bootloader" maxOccurs="1" minOccurs="1" />
|
||||||
<xs:element ref="scripts" maxOccurs="unbounded" minOccurs="0" />
|
|
||||||
</xs:sequence>
|
</xs:sequence>
|
||||||
</xs:complexType>
|
</xs:complexType>-->
|
||||||
</xs:element>
|
</xs:element>
|
||||||
</xs:schema>
|
</xs:schema>
|
Loading…
Reference in New Issue
Block a user