aif-ng/TODO
2017-03-08 05:04:21 -05:00

38 lines
1.6 KiB
Plaintext

bf566e594a2ad3e488fef7cfa6832d4ba857d8129b0c00fe3a096e9fbb85e92c268368a201f12f22571312923393b2174e11f9c9e347df5c8682d5b355da0d8b- config layout. xml? e.g.
...
<disk type="gpt" name="sda">
<part size="50%" name="/" format="8303" />
<part size="40%" name="/home" format="8302" />
<part size="5%" name="swap" format="8200" />
<part size="5%" name="/boot" format="ef02" />
</disk>
...
- use sgdisk? scripting (generated by python) for disk partitioning (part types listed at http://www.rodsbooks.com/gdisk/walkthrough.html )
-- actually, might want to use parted --script instead? then we can do percentages. https://www.gnu.org/software/parted/manual/parted.html
https://unix.stackexchange.com/questions/200582/scripteable-gpt-partitions-using-parted
- add mkfs-ing
-support serverside "autoconfig"- a mechanism to let servers automatically generate xml build configs. e.g.:
kernel ... aif_url="https://build.domain.tld/aif-ng.php" auto=yes
would yield the *client* sending info via URL params, e.g.
https://build.domain.tld/aif-ng.php?disk[]=sda&disk[]=sdb&disk[sda]=300GB&disk[sdb]=500GB
? something like that.
parser: make sure to use https://mikeknoop.com/lxml-xxe-exploit/ fix
need to set proper location block for https://aif.square-r00t.net/aif.xsd
xmllint --noout --schema aif.xsd aif.xml
docs:
http://lxml.de/parsing.html
https://www.w3.org/2001/XMLSchema.xsd
http://lxml.de/validation.html#xmlschema
https://stackoverflow.com/questions/3084155/custom-attributes-in-an-xsd-schema
https://www.w3schools.com/xml/schema_intro.asp
https://www.w3schools.com/xml/schema_example.asp
https://msdn.microsoft.com/en-us/library/dd489258.aspx