2019-12-08 00:29:43 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2019-12-08 00:36:53 -05:00
|
|
|
<xs:schema targetNamespace="http://schema.xml.r00t2.io/aif.xsd"
|
2019-12-08 03:27:20 -05:00
|
|
|
xmlns="http://schema.xml.r00t2.io/aif.xsd"
|
2019-12-08 00:36:53 -05:00
|
|
|
xmlns:aif="http://schema.xml.r00t2.io/aif.xsd"
|
2019-12-08 00:29:43 -05:00
|
|
|
xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
|
|
elementFormDefault="qualified"
|
|
|
|
attributeFormDefault="qualified">
|
|
|
|
|
2019-12-08 03:27:20 -05:00
|
|
|
<xs:import schemaLocation="http://schema.xml.r00t2.io/linux.xsd"/>
|
|
|
|
<xs:import schemaLocation="http://schema.xml.r00t2.io/net.xsd"/>
|
|
|
|
<xs:import schemaLocation="http://schema.xml.r00t2.io/std.xsd"/>
|
|
|
|
<xs:import schemaLocation="http://schema.xml.r00t2.io/sys.xsd"/>
|
|
|
|
<xs:import schemaLocation="http://schema.xml.r00t2.io/unix.xsd"/>
|
2019-12-08 03:13:52 -05:00
|
|
|
|
2019-12-08 01:42:33 -05:00
|
|
|
<xs:simpleType name="t_auto_ip6">
|
|
|
|
<xs:union memberTypes="net:t_auto_ip6">
|
|
|
|
<xs:simpleType>
|
2019-12-08 03:13:52 -05:00
|
|
|
<xs:restriction base="xs:string">
|
2019-12-08 01:42:33 -05:00
|
|
|
<xs:enumeration value="false"/>
|
|
|
|
<xs:enumeration value="none"/>
|
|
|
|
<xs:enumeration value="0"/>
|
2019-12-08 03:13:52 -05:00
|
|
|
<xs:whiteSpace value="collapse"/>
|
2019-12-08 01:42:33 -05:00
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
</xs:union>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
2019-12-08 02:07:21 -05:00
|
|
|
<xs:simpleType name="t_bootloaders">
|
|
|
|
<!-- TODO: expand?
|
|
|
|
https://wiki.archlinux.org/index.php/Category:Boot_loaders
|
|
|
|
https://wiki.archlinux.org/index.php/Arch_boot_process#Boot_loader -->
|
|
|
|
<xs:restriction base="xs:token">
|
|
|
|
<xs:enumeration value="grub"/>
|
|
|
|
<xs:enumeration value="systemd"/>
|
|
|
|
<xs:enumeration value="syslinux"/>
|
|
|
|
<xs:enumeration value="lilo"/>
|
|
|
|
<xs:whiteSpace value="collapse"/>
|
|
|
|
</xs:restriction>
|
2019-12-08 01:42:33 -05:00
|
|
|
</xs:simpleType>
|
|
|
|
|
|
|
|
<xs:simpleType name="t_dhcp_clients">
|
|
|
|
<!-- Only valid for netctl. AIF-NG uses the internal daemons for systemd-networkd and NM. -->
|
|
|
|
<xs:restriction base="xs:string">
|
|
|
|
<xs:enumeration value="dhcpcd"/>
|
|
|
|
<xs:enumeration value="dhclient"/>
|
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
|
|
|
<xs:complexType name="t_iface">
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:choice maxOccurs="unbounded">
|
|
|
|
<xs:element name="addresses" minOccurs="0" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:choice minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xs:element name="ipv4">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="address" minOccurs="0" maxOccurs="unbounded">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:simpleContent>
|
|
|
|
<xs:extension base="net:t_qualified_addr_ip4">
|
|
|
|
<xs:attribute name="gateway"
|
|
|
|
type="net:t_addr_ip4"
|
|
|
|
use="optional"/>
|
|
|
|
</xs:extension>
|
|
|
|
</xs:simpleContent>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
|
|
|
<xs:attribute name="auto" type="xs:boolean" use="optional" default="true"/>
|
|
|
|
</xs:complexType>
|
|
|
|
<xs:unique name="uniq_ipv4_addr">
|
|
|
|
<xs:selector xpath="aif:address"/>
|
|
|
|
<xs:field xpath="."/>
|
|
|
|
</xs:unique>
|
|
|
|
</xs:element>
|
|
|
|
<xs:element name="ipv6">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="address" minOccurs="0" maxOccurs="unbounded">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:simpleContent>
|
|
|
|
<xs:extension base="net:t_qualified_addr_ip6">
|
|
|
|
<xs:attribute name="gateway"
|
|
|
|
type="net:t_addr_ip6"
|
|
|
|
use="optional"/>
|
|
|
|
</xs:extension>
|
|
|
|
</xs:simpleContent>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
|
|
|
<xs:attribute name="auto" type="aif:t_auto_ip6"
|
|
|
|
use="optional" default="slaac"/>
|
|
|
|
</xs:complexType>
|
|
|
|
<xs:unique name="uniq_ipv6_addr">
|
|
|
|
<xs:selector xpath="aif:address"/>
|
|
|
|
<xs:field xpath="."/>
|
|
|
|
</xs:unique>
|
|
|
|
</xs:element>
|
|
|
|
</xs:choice>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<xs:element name="resolvers" minOccurs="0" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xs:choice minOccurs="1" maxOccurs="unbounded">
|
2019-12-08 03:13:52 -05:00
|
|
|
<xs:element name="resolver" minOccurs="1" maxOccurs="unbounded" type="net:t_both_addr"/>
|
2019-12-08 01:42:33 -05:00
|
|
|
<xs:element name="ipv4" minOccurs="0" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:attribute name="auto" type="xs:boolean"
|
|
|
|
use="required"/>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<xs:element name="ipv6" minOccurs="0" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:attribute name="auto" type="xs:boolean"
|
|
|
|
use="required"/>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:choice>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<xs:element name="routes" minOccurs="0" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xs:choice minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xs:element name="ipv4">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="route" minOccurs="0" maxOccurs="unbounded">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:simpleContent>
|
|
|
|
<xs:extension base="net:t_qualified_addr_ip4">
|
|
|
|
<xs:attribute name="gateway"
|
|
|
|
type="net:t_addr_ip4"
|
|
|
|
use="required"/>
|
|
|
|
</xs:extension>
|
|
|
|
</xs:simpleContent>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
|
|
|
<xs:attribute name="auto" type="xs:boolean" use="optional" default="true"/>
|
|
|
|
</xs:complexType>
|
|
|
|
<xs:unique name="uniq_ipv4_route">
|
|
|
|
<xs:selector xpath="aif:route"/>
|
|
|
|
<xs:field xpath="."/>
|
|
|
|
</xs:unique>
|
|
|
|
</xs:element>
|
|
|
|
<xs:element name="ipv6">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="address" minOccurs="0" maxOccurs="unbounded">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:simpleContent>
|
|
|
|
<xs:extension base="net:t_qualified_addr_ip6">
|
|
|
|
<xs:attribute name="gateway"
|
|
|
|
type="net:t_addr_ip6"
|
|
|
|
use="required"/>
|
|
|
|
</xs:extension>
|
|
|
|
</xs:simpleContent>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
|
|
|
<!-- DHCPv6 does not have an option to send routes,
|
|
|
|
so you need to use RAs. -->
|
|
|
|
<!-- See https://www.isc.org/blogs/routing-configuration-over-dhcpv6-2/
|
|
|
|
for more information. -->
|
|
|
|
<!-- https://datatracker.ietf.org/doc/draft-ietf-mif-dhcpv6-route-option/
|
|
|
|
expired. Shame, that. -->
|
|
|
|
<xs:attribute name="auto" type="xs:boolean" use="optional" default="true"/>
|
|
|
|
</xs:complexType>
|
|
|
|
<xs:unique name="uniq_ipv6_route">
|
|
|
|
<xs:selector xpath="aif:route"/>
|
|
|
|
<xs:field xpath="."/>
|
|
|
|
</xs:unique>
|
|
|
|
</xs:element>
|
|
|
|
</xs:choice>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:choice>
|
|
|
|
</xs:sequence>
|
|
|
|
<xs:attribute name="id" type="xs:ID" use="required"/>
|
|
|
|
<xs:attribute name="device" type="aif:t_iface_name" use="required"/>
|
|
|
|
<xs:attribute name="defroute" type="xs:boolean" use="optional" default="false"/>
|
|
|
|
<xs:attribute name="searchDomain" type="std:t_nonempty" use="optional"/>
|
|
|
|
</xs:complexType>
|
|
|
|
|
2019-12-08 02:07:21 -05:00
|
|
|
<xs:simpleType name="t_iface_name">
|
|
|
|
<xs:union memberTypes="linux:t_iface_name">
|
|
|
|
<xs:simpleType>
|
|
|
|
<xs:restriction>
|
|
|
|
<xs:enumeration value="auto"/>
|
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
</xs:union>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
2019-12-08 01:42:33 -05:00
|
|
|
<xs:complexType name="t_iface_wifi">
|
|
|
|
<xs:complexContent>
|
|
|
|
<xs:extension base="aif:t_iface">
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="encryption" type="net:t_wifi_crypto" minOccurs="0" maxOccurs="1"/>
|
|
|
|
</xs:sequence>
|
|
|
|
<!-- TODO: SSID needs to support unicode chars in both XML(/XSD type=?) and program -->
|
|
|
|
<xs:attribute name="essid" type="xs:string" use="required"/>
|
|
|
|
<xs:attribute name="bssid" type="net:t_mac_addr" use="optional"/>
|
|
|
|
<xs:attribute name="hidden" type="xs:boolean" use="optional" default="false"/>
|
|
|
|
</xs:extension>
|
|
|
|
</xs:complexContent>
|
|
|
|
</xs:complexType>
|
|
|
|
|
2019-12-08 02:07:21 -05:00
|
|
|
<xs:simpleType name="t_netproto">
|
|
|
|
<xs:union memberTypes="net:t_netproto">
|
|
|
|
<xs:simpleType>
|
|
|
|
<xs:restriction>
|
|
|
|
<xs:enumeration value="both"/>
|
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
</xs:union>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
|
|
|
<xs:simpleType name="t_netprov">
|
|
|
|
<xs:restriction base="xs:token">
|
|
|
|
<xs:enumeration value="netctl"/>
|
|
|
|
<xs:enumeration value="nm"/>
|
|
|
|
<xs:enumeration value="networkd"/>
|
|
|
|
<xs:whiteSpace value="collapse"/>
|
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
2019-12-08 01:42:33 -05:00
|
|
|
<xs:simpleType name="t_pacuri">
|
|
|
|
<!-- xs:anyURI is too permissive. -->
|
|
|
|
<!-- <xs:restriction base="xs:anyURI"> -->
|
|
|
|
<xs:restriction base="xs:token">
|
|
|
|
<xs:pattern value="(file|https?)://.+"/>
|
|
|
|
<xs:whiteSpace value="collapse"/>
|
|
|
|
</xs:restriction>
|
|
|
|
</xs:simpleType>
|
|
|
|
|
2019-12-08 02:07:21 -05:00
|
|
|
<!-- ROOT -->
|
|
|
|
<xs:element name="aif">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:all>
|
|
|
|
<!-- BEGIN BOOTSTRAP -->
|
|
|
|
<xs:element name="bootstrap" minOccurs="1" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:all>
|
|
|
|
<xs:element name="tarball" minOccurs="1" maxOccurs="1" type="aif:t_uri"/>
|
|
|
|
<xs:element name="verify" minOccurs="0" maxOccurs="1">
|
|
|
|
|
|
|
|
</xs:element>
|
|
|
|
</xs:all>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<!-- END BOOTSTRAP -->
|
|
|
|
<!-- BEGIN STORAGE -->
|
|
|
|
<xs:element name="storage" minOccurs="1" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:all>
|
|
|
|
<!-- BEGIN BLOCKDEVICES -->
|
|
|
|
<xs:element name="blockDevices" minOccurs="0" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence minOccurs="1" maxOccurs="unbounded">
|
2019-12-08 03:05:00 -05:00
|
|
|
<xs:element name="disk" minOccurs="1" maxOccurs="unbounded" type="linux:t_disk">
|
2019-12-08 02:07:21 -05:00
|
|
|
<xs:unique name="uniq_diskdev">
|
|
|
|
<xs:selector xpath="aif:disk"/>
|
|
|
|
<xs:field xpath="@device"/>
|
|
|
|
</xs:unique>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<!-- END DISK -->
|
|
|
|
<!-- BEGIN FILESYSTEMS -->
|
|
|
|
<xs:element name="fileSystems" minOccurs="1" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="fs" minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="opt" minOccurs="0" maxOccurs="unbounded"
|
2019-12-08 03:05:00 -05:00
|
|
|
type="std:t_cmdopts"/>
|
2019-12-08 02:07:21 -05:00
|
|
|
</xs:sequence>
|
|
|
|
<xs:attribute name="id" type="xs:ID" use="required"/>
|
|
|
|
<xs:attribute name="source" type="xs:IDREF" use="required"/>
|
|
|
|
<!-- We validate this in-code because there's way too many and
|
|
|
|
it's way too variable per-host. -->
|
2019-12-08 03:05:00 -05:00
|
|
|
<xs:attribute name="type" type="std:t_nonempty" use="required"/>
|
2019-12-08 02:07:21 -05:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<!-- END FILESYSTEMS -->
|
|
|
|
<!-- BEGIN LUKS -->
|
2019-12-08 03:05:00 -05:00
|
|
|
<xs:element name="luks" minOccurs="0" maxOccurs="1" type="linux:t_luks">
|
2019-12-08 02:07:21 -05:00
|
|
|
<xs:unique name="uniq_luks_name">
|
|
|
|
<xs:selector xpath="aif:luksDev"/>
|
|
|
|
<xs:field xpath="@name"/>
|
|
|
|
</xs:unique>
|
|
|
|
</xs:element>
|
|
|
|
<!-- END LUKS -->
|
|
|
|
<!-- BEGIN LVM -->
|
2019-12-08 03:05:00 -05:00
|
|
|
<xs:element name="lvm" minOccurs="0" maxOccurs="1" type="linux:t_lvm">
|
2019-12-08 02:07:21 -05:00
|
|
|
<xs:unique name="uniq_vg_names">
|
|
|
|
<xs:selector xpath="aif:volumeGroup"/>
|
|
|
|
<xs:field xpath="@name"/>
|
|
|
|
</xs:unique>
|
|
|
|
<xs:unique name="uniq_vg_lv">
|
|
|
|
<xs:selector xpath=".//aif:lv"/>
|
|
|
|
<xs:field xpath="@name"/>
|
|
|
|
</xs:unique>
|
|
|
|
<xs:unique name="uniq_vg_pv">
|
|
|
|
<xs:selector xpath=".//aif:pv"/>
|
|
|
|
<xs:field xpath="@source"/>
|
|
|
|
</xs:unique>
|
|
|
|
</xs:element>
|
|
|
|
<!-- END LVM -->
|
|
|
|
<!-- BEGIN MDADM -->
|
2019-12-08 03:05:00 -05:00
|
|
|
<xs:element name="mdadm" minOccurs="0" maxOccurs="1" type="linux:t_mdadm">
|
2019-12-08 02:07:21 -05:00
|
|
|
<xs:unique name="uniq_array_name">
|
|
|
|
<xs:selector xpath="aif:array"/>
|
|
|
|
<xs:field xpath="@name"/>
|
|
|
|
</xs:unique>
|
|
|
|
</xs:element>
|
|
|
|
<!-- END MDADM -->
|
|
|
|
<!-- BEGIN MOUNTPOINTS -->
|
|
|
|
<xs:element name="mountPoints" minOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xs:element name="mount" minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence minOccurs="0" maxOccurs="unbounded">
|
|
|
|
<xs:element name="opt" minOccurs="1" maxOccurs="unbounded"
|
|
|
|
type="aif:t_cmdopts"/>
|
|
|
|
</xs:sequence>
|
|
|
|
<xs:attribute name="source" type="xs:IDREF" use="required"/>
|
|
|
|
<xs:attribute name="target" type="aif:t_filepath" use="required"/>
|
|
|
|
</xs:complexType>
|
|
|
|
<xs:unique name="uniq_mnts_src">
|
|
|
|
<xs:selector xpath="aif:mount"/>
|
|
|
|
<xs:field xpath="@source"/>
|
|
|
|
</xs:unique>
|
|
|
|
<xs:unique name="uniq_mnts_tgt">
|
|
|
|
<xs:selector xpath="aif:mount"/>
|
|
|
|
<xs:field xpath="@target"/>
|
|
|
|
</xs:unique>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<!-- END MOUNTPOINTS -->
|
|
|
|
</xs:all>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<!-- END STORAGE -->
|
|
|
|
<!-- BEGIN NETWORK -->
|
|
|
|
<xs:element name="network" minOccurs="1" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:choice minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xs:element name="ethernet" type="aif:t_iface" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
|
<xs:element name="wireless" type="aif:t_iface_wifi" minOccurs="0" maxOccurs="unbounded"/>
|
|
|
|
</xs:choice>
|
|
|
|
<!-- It's nearly impossible to validate FQDNs/hostnames in XSD, so we do it in-code. -->
|
2019-12-08 03:05:00 -05:00
|
|
|
<xs:attribute name="hostname" type="std:t_nonempty" use="required"/>
|
2019-12-08 02:07:21 -05:00
|
|
|
<xs:attribute name="provider" type="aif:t_netprov" use="optional" default="networkd"/>
|
|
|
|
<xs:attribute name="dhcpClient" type="aif:t_dhcp_clients" use="optional" default="dhcpcd"/>
|
|
|
|
</xs:complexType>
|
|
|
|
<xs:unique name="uniq_iface_eth">
|
|
|
|
<xs:selector xpath="aif:ethernet|aif:wireless"/>
|
|
|
|
<xs:field xpath="@device"/>
|
|
|
|
</xs:unique>
|
|
|
|
</xs:element>
|
|
|
|
<!-- END NETWORK -->
|
|
|
|
<!-- BEGIN SYSTEM -->
|
|
|
|
<xs:element name="system" maxOccurs="1" minOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:all>
|
2019-12-08 03:05:00 -05:00
|
|
|
<xs:element name="rootPassword" minOccurs="0" maxOccurs="1" type="linux:t_nixpass"/>
|
2019-12-08 02:07:21 -05:00
|
|
|
<xs:element name="locales" minOccurs="1" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xs:element name="locale" minOccurs="1" maxOccurs="unbounded">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:simpleContent>
|
|
|
|
<xs:extension base="xs:token">
|
2019-12-08 03:05:00 -05:00
|
|
|
<xs:attribute name="name" type="std:t_nonempty" use="required"/>
|
2019-12-08 02:07:21 -05:00
|
|
|
</xs:extension>
|
|
|
|
</xs:simpleContent>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<xs:element name="console" minOccurs="0" maxOccurs="1">
|
|
|
|
<!-- vconsole.conf(5) -->
|
|
|
|
<!-- timezone and kbd/xkbd are validated in-code. -->
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:all minOccurs="1">
|
|
|
|
<!-- These are validated in-code -->
|
|
|
|
<xs:element name="keyboard" minOccurs="1" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:choice>
|
|
|
|
<xs:element name="map" minOccurs="0" maxOccurs="1"
|
2019-12-08 03:05:00 -05:00
|
|
|
type="std:t_nonempty" default="us"/>
|
2019-12-08 02:07:21 -05:00
|
|
|
<xs:element name="toggle" minOccurs="0" maxOccurs="1"
|
2019-12-08 03:05:00 -05:00
|
|
|
type="std:t_nonempty"/>
|
2019-12-08 02:07:21 -05:00
|
|
|
</xs:choice>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<xs:element name="text" minOccurs="0" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:choice minOccurs="1" maxOccurs="3">
|
|
|
|
<xs:element name="font" minOccurs="0" maxOccurs="1"
|
2019-12-08 03:05:00 -05:00
|
|
|
type="std:t_nonempty"/>
|
2019-12-08 02:07:21 -05:00
|
|
|
<xs:element name="map" minOccurs="0" maxOccurs="1"
|
2019-12-08 03:05:00 -05:00
|
|
|
type="std:t_nonempty"/>
|
2019-12-08 02:07:21 -05:00
|
|
|
<xs:element name="unicodeMap" minOccurs="0" maxOccurs="1"
|
2019-12-08 03:05:00 -05:00
|
|
|
type="std:t_nonempty"/>
|
2019-12-08 02:07:21 -05:00
|
|
|
</xs:choice>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:all>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<xs:element name="users" minOccurs="0" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
2019-12-08 03:05:00 -05:00
|
|
|
<xs:element name="user" minOccurs="1" maxOccurs="unbounded"
|
|
|
|
type="linux:t_user"/>
|
2019-12-08 02:07:21 -05:00
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
<xs:unique name="uniq_usr">
|
|
|
|
<xs:selector xpath="aif:user"/>
|
|
|
|
<xs:field xpath="@name"/>
|
|
|
|
</xs:unique>
|
|
|
|
</xs:element>
|
|
|
|
<xs:element name="services" minOccurs="0" maxOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
2019-12-08 03:05:00 -05:00
|
|
|
<xs:element name="service" minOccurs="1" maxOccurs="unbounded"
|
|
|
|
type="linux:t_service"/>
|
|
|
|
<xs:unique name="uniq_svc">
|
|
|
|
<xs:selector xpath="aif:service"/>
|
|
|
|
<xs:field xpath="@name"/>
|
|
|
|
<xs:field xpath="@status"/>
|
|
|
|
</xs:unique>
|
2019-12-08 02:07:21 -05:00
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:all>
|
2019-12-08 03:05:00 -05:00
|
|
|
<xs:attribute name="timezone" type="std:t_nonempty" use="optional" default="UTC"/>
|
2019-12-08 02:07:21 -05:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<!-- END SYSTEM -->
|
|
|
|
<!-- BEGIN PACMAN -->
|
|
|
|
<xs:element name="pacman" maxOccurs="1" minOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="repos" maxOccurs="1" minOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="repo" maxOccurs="unbounded" minOccurs="1">
|
|
|
|
<xs:complexType>
|
2019-12-08 03:05:00 -05:00
|
|
|
<xs:attribute name="name" type="std:t_nonempty" use="required"/>
|
2019-12-08 02:07:21 -05:00
|
|
|
<xs:attribute name="enabled" type="xs:boolean" use="required"/>
|
2019-12-08 03:05:00 -05:00
|
|
|
<xs:attribute name="sigLevel" type="std:t_nonempty" use="required"/>
|
2019-12-08 02:07:21 -05:00
|
|
|
<xs:attribute name="mirror" type="aif:t_pacuri" use="required"/>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
<xs:unique name="uniq_repo">
|
|
|
|
<xs:selector xpath="aif:repo"/>
|
|
|
|
<xs:field xpath="@name"/>
|
|
|
|
</xs:unique>
|
|
|
|
</xs:element>
|
|
|
|
<xs:element name="mirrorList" maxOccurs="1" minOccurs="0">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="mirror" type="aif:t_pacuri" maxOccurs="unbounded"
|
|
|
|
minOccurs="1"/>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<xs:element name="software" maxOccurs="1" minOccurs="0">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
2019-12-08 03:05:00 -05:00
|
|
|
<xs:element name="package" maxOccurs="unbounded" minOccurs="1"
|
|
|
|
type="linux:t_package"/>
|
2019-12-08 02:07:21 -05:00
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
<xs:unique name="uniq_mirror">
|
|
|
|
<xs:selector xpath="aif:mirrorList"/>
|
|
|
|
<xs:field xpath="mirror"/>
|
|
|
|
</xs:unique>
|
|
|
|
<xs:unique name="uniq_pkg">
|
|
|
|
<xs:selector xpath="aif:software"/>
|
|
|
|
<xs:field xpath="package"/>
|
|
|
|
</xs:unique>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
2019-12-08 03:05:00 -05:00
|
|
|
<xs:attribute name="command" type="std:t_nonempty" use="optional" default="pacman -S"/>
|
2019-12-08 02:07:21 -05:00
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<!-- END PACMAN -->
|
|
|
|
<!-- BEGIN BOOTLOADER -->
|
|
|
|
<xs:element name="bootloader" maxOccurs="1" minOccurs="1">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:attribute name="type" type="aif:t_bootloaders" use="required"/>
|
|
|
|
<xs:attribute name="target" type="std:t_nonempty" use="required"/>
|
|
|
|
<xs:attribute name="efi" type="xs:boolean" use="optional" default="1"/>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<!-- END BOOTLOADER -->
|
|
|
|
<!--- BEGIN SCRIPTS -->
|
|
|
|
<xs:element name="scripts" maxOccurs="1" minOccurs="0">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="pre" minOccurs="0" maxOccurs="unbounded">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="script" minOccurs="1" maxOccurs="unbounded"
|
|
|
|
type="net:t_http_resource"/>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<xs:element name="post" minOccurs="0" maxOccurs="unbounded">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="script" minOccurs="1" maxOccurs="unbounded"
|
|
|
|
type="net:t_http_resource"/>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<xs:element name="pkg" minOccurs="0" maxOccurs="unbounded">
|
|
|
|
<xs:complexType>
|
|
|
|
<xs:sequence>
|
|
|
|
<xs:element name="script" minOccurs="1" maxOccurs="unbounded"
|
|
|
|
type="net:t_http_resource"/>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
</xs:sequence>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
<!-- END SCRIPTS -->
|
|
|
|
</xs:all>
|
|
|
|
<xs:attribute name="chrootPath" type="unix:t_filepath" use="required"/>
|
|
|
|
<xs:attribute name="reboot" type="xs:boolean" use="optional" default="false"/>
|
|
|
|
<xs:attribute name="bootstrapTarball" type="std:t_uri" use="required"/>
|
|
|
|
</xs:complexType>
|
|
|
|
</xs:element>
|
|
|
|
|
2019-12-08 00:29:43 -05:00
|
|
|
</xs:schema>
|