2017-03-06 07:32:34 -05:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2019-10-09 07:18:10 -04:00
|
|
|
<aif xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
2019-12-10 06:59:47 -05:00
|
|
|
xmlns="https://aif-ng.io/"
|
2019-12-11 04:32:07 -05:00
|
|
|
xsi:schemaLocation="https://aif-ng.io/ http://schema.xml.r00t2.io/projects/aif.xsd"
|
2019-12-07 00:16:46 -05:00
|
|
|
chrootPath="/mnt/aif"
|
2019-12-10 06:59:47 -05:00
|
|
|
reboot="false">
|
|
|
|
<bootstrap>
|
2019-12-17 03:40:08 -05:00
|
|
|
<tarball>
|
2021-03-28 12:38:02 -04:00
|
|
|
https://arch.mirror.square-r00t.net/iso/latest/archlinux-bootstrap-2020.03.01-x86_64.tar.gz
|
2019-12-17 03:40:08 -05:00
|
|
|
</tarball>
|
2020-01-03 03:38:35 -05:00
|
|
|
<!-- <tarball>-->
|
|
|
|
<!-- file:///tmp/archlinux-bootstrap-2020.01.01-x86_64.tar.gz-->
|
|
|
|
<!-- </tarball>-->
|
2019-12-10 06:59:47 -05:00
|
|
|
<verify>
|
|
|
|
<gpg>
|
2019-12-11 04:32:07 -05:00
|
|
|
<sigs>
|
|
|
|
<signatureFile>
|
2021-03-28 12:38:02 -04:00
|
|
|
https://arch.mirror.square-r00t.net/iso/latest/archlinux-bootstrap-2020.03.01-x86_64.tar.gz.sig
|
2019-12-11 04:32:07 -05:00
|
|
|
</signatureFile>
|
2020-01-03 03:38:35 -05:00
|
|
|
<!-- <signatureFile>-->
|
|
|
|
<!-- file:///tmp/archlinux-bootstrap-2020.01.01-x86_64.tar.gz.sig-->
|
|
|
|
<!-- </signatureFile>-->
|
2019-12-11 04:32:07 -05:00
|
|
|
</sigs>
|
2019-12-19 14:04:34 -05:00
|
|
|
<keys detect="false">
|
2019-12-11 04:32:07 -05:00
|
|
|
<keyID>0x4AA4767BBC9C4B1D18AE28B77F2D434B9741E8AC</keyID>
|
|
|
|
</keys>
|
2019-12-10 06:59:47 -05:00
|
|
|
</gpg>
|
|
|
|
<hash>
|
2019-12-17 03:40:08 -05:00
|
|
|
<checksumFile hashType="md5" fileType="gnu">
|
|
|
|
http://arch.mirror.square-r00t.net/iso/latest/md5sums.txt
|
|
|
|
</checksumFile>
|
|
|
|
<checksumFile hashType="sha1" fileType="gnu">
|
|
|
|
http://arch.mirror.square-r00t.net/iso/latest/sha1sums.txt
|
|
|
|
</checksumFile>
|
2019-12-10 06:59:47 -05:00
|
|
|
</hash>
|
|
|
|
</verify>
|
|
|
|
</bootstrap>
|
2017-03-06 07:48:42 -05:00
|
|
|
<storage>
|
2019-10-28 03:40:26 -04:00
|
|
|
<blockDevices>
|
2019-11-06 02:21:04 -05:00
|
|
|
<disk id="sda" device="/dev/sda" diskFormat="gpt">
|
2019-10-28 03:40:26 -04:00
|
|
|
<!-- Partitions are numbered *in the order they are specified*. -->
|
2019-10-28 11:39:25 -04:00
|
|
|
<!-- e.g. "boot" would be /dev/sda1, "secrets1" would be /dev/sda2, etc. -->
|
2019-10-29 01:01:31 -04:00
|
|
|
<part id="boot" name="BOOT" label="/boot" start="0%" stop="10%" fsType="fat32">
|
|
|
|
<partitionFlag>esp</partitionFlag>
|
|
|
|
</part>
|
|
|
|
<part id="secrets1" name="crypted" label="shh" start="10%" stop="20%" fsType="ext4">
|
|
|
|
<partitionFlag>root</partitionFlag>
|
|
|
|
</part>
|
|
|
|
<part id="lvm_member1" name="jbod" label="dynamic" start="20%" stop="30%" fsType="ext4">
|
|
|
|
<partitionFlag>lvm</partitionFlag>
|
|
|
|
</part>
|
|
|
|
<part id="raid1_d1" start="30%" stop="55%" fsType="ext4">
|
|
|
|
<partitionFlag>raid</partitionFlag>
|
|
|
|
</part>
|
|
|
|
<part id="raid1_d2" start="55%" stop="80%" fsType="ext4">
|
|
|
|
<partitionFlag>raid</partitionFlag>
|
|
|
|
</part>
|
2019-11-06 02:21:04 -05:00
|
|
|
<part id="swapdisk" start="80%" stop="90%" fsType="linux-swap(v1)">
|
2019-10-29 01:01:31 -04:00
|
|
|
<partitionFlag>swap</partitionFlag>
|
|
|
|
</part>
|
2019-10-29 22:37:36 -04:00
|
|
|
<!-- You can also create a partition with no flags (and not use). -->
|
|
|
|
<part id="grow" start="90%" stop="100%" fsType="ext4"/>
|
2019-10-28 03:40:26 -04:00
|
|
|
</disk>
|
|
|
|
</blockDevices>
|
2019-10-09 07:18:10 -04:00
|
|
|
<!-- "Special" devices are processed *in the order they are specified*. This is important if you wish to
|
2019-11-06 16:58:58 -05:00
|
|
|
e.g. layer LVM on top of LUKS - you would specify <lvm> before <luks> and reference the
|
|
|
|
<luksDev id="SOMETHING" ... > as <pv source="SOMETHING" ... />.
|
2019-10-28 03:40:26 -04:00
|
|
|
Of course, a limitation of this is you cannot e.g. first assemble a LUKS volume, then an LVM
|
2019-11-06 16:58:58 -05:00
|
|
|
group, and then another LUKS volume - so plan accordingly and/or perform that in
|
|
|
|
a <post> script instead. -->
|
2019-10-09 07:18:10 -04:00
|
|
|
<luks>
|
2019-10-28 01:26:31 -04:00
|
|
|
<luksDev id="luks_secrets" name="secrets" source="secrets1">
|
|
|
|
<!-- You can assign multiple secrets (or "keys") to a LUKS volume. -->
|
2019-11-06 16:58:58 -05:00
|
|
|
<secrets>
|
2019-10-28 01:26:31 -04:00
|
|
|
<!-- A simple passphrase. -->
|
|
|
|
<passphrase>secrets1</passphrase>
|
|
|
|
</secrets>
|
|
|
|
<secrets>
|
|
|
|
<!-- A key that uses a keyfile on a mounted path. This example uses the passphrase in
|
|
|
|
a plaintext file, which is in turn read by LUKS. -->
|
|
|
|
<passphrase>secrets1</passphrase>
|
|
|
|
<keyFile>/boot/.decrypt.plaintext</keyFile>
|
|
|
|
</secrets>
|
|
|
|
<secrets>
|
|
|
|
<!-- This will generate a 4096-byte file of random data. -->
|
|
|
|
<keyFile size="4096">/root/.decrypt.key</keyFile>
|
|
|
|
</secrets>
|
|
|
|
</luksDev>
|
2019-10-09 07:18:10 -04:00
|
|
|
</luks>
|
|
|
|
<lvm>
|
2019-11-07 19:42:43 -05:00
|
|
|
<volumeGroup id="vg1" name="group1" extentSize="4MiB">
|
2019-10-31 22:35:31 -04:00
|
|
|
<physicalVolumes>
|
|
|
|
<pv id="pv1" source="lvm_member1"/>
|
|
|
|
</physicalVolumes>
|
|
|
|
<logicalVolumes>
|
2019-11-06 12:48:18 -05:00
|
|
|
<!-- Default is to add all available PVs in PhysicalVolumes... -->
|
|
|
|
<lv id="lv1" name="logical1" size="80%"/>
|
2019-11-07 19:42:43 -05:00
|
|
|
<lv id="lv2" name="logical2" size="512MiB">
|
|
|
|
<!-- But you can also explicitly designate them. They have to still be in the same volumeGroup.
|
|
|
|
This is generally speaking a *terrible* idea, though, because it makes getting the
|
|
|
|
sizes right virtually *impossible*. If you do this, you should consistently ONLY use
|
|
|
|
bytes for each LV size and know the size of the PVs/VGs ahead of time. -->
|
2019-11-06 12:48:18 -05:00
|
|
|
<pvMember source="pv1"/>
|
|
|
|
</lv>
|
2019-10-31 22:35:31 -04:00
|
|
|
</logicalVolumes>
|
|
|
|
</volumeGroup>
|
2019-10-09 07:18:10 -04:00
|
|
|
</lvm>
|
|
|
|
<mdadm>
|
2019-10-28 11:39:25 -04:00
|
|
|
<!-- level can be 0, 1, 4, 5, 6, or 10. RAID 1+0 (which is different from mdadm RAID10) would be done by
|
2019-12-20 12:50:41 -05:00
|
|
|
creating an array with members of a previously defined array. -->
|
2019-10-29 15:42:09 -04:00
|
|
|
<array id="mdadm1" name="data" meta="1.2" level="1">
|
2019-10-09 07:18:10 -04:00
|
|
|
<member source="raid1_d1"/>
|
|
|
|
<member source="raid1_d2"/>
|
|
|
|
</array>
|
|
|
|
</mdadm>
|
2019-10-26 02:52:47 -04:00
|
|
|
<fileSystems>
|
2019-11-06 02:21:04 -05:00
|
|
|
<fs id="esp" source="boot" type="vfat">
|
2019-10-26 02:52:47 -04:00
|
|
|
<!-- Supports mkfs arguments. Leave off the filesystem type and device name, obviously;
|
|
|
|
those are handled by the above attributes. -->
|
|
|
|
<opt name="-F">32</opt>
|
|
|
|
<opt name="-n">ESP</opt>
|
|
|
|
</fs>
|
2019-11-06 02:21:04 -05:00
|
|
|
<fs id="luks" source="luks_secrets" type="ext4">
|
2019-10-26 02:52:47 -04:00
|
|
|
<opt name="-L">seekrit</opt>
|
|
|
|
</fs>
|
2019-11-06 16:58:58 -05:00
|
|
|
<fs id="swap" source="swap" type="swap"/>
|
2019-11-06 02:21:04 -05:00
|
|
|
<fs id="vg1-lv1" source="lv1" type="ext4"/>
|
|
|
|
<fs id="mdraid" source="mdadm1" type="ext4"/>
|
2019-10-26 02:52:47 -04:00
|
|
|
</fileSystems>
|
2019-10-28 01:26:31 -04:00
|
|
|
<mountPoints>
|
2019-11-06 02:21:04 -05:00
|
|
|
<!-- And you use the id to reference mountpoints as well. Important to note, we mount *filesystems*,
|
|
|
|
not partitions/disks/etc. -->
|
|
|
|
<!-- Note that targets should be *outside* of the chroot!
|
|
|
|
e.g. /aif/storage/mountPoints[@target="/mnt/aif/boot"]
|
|
|
|
and
|
|
|
|
/aif/system[@chrootPath="/mnt/aif"]
|
|
|
|
would lead to the filesystem being accessible *inside* the chroot (and thus the completed install)
|
|
|
|
at /boot. -->
|
|
|
|
<mount source="luks" target="/mnt/aif">
|
2019-10-28 01:26:31 -04:00
|
|
|
<opt name="rw"/>
|
|
|
|
<opt name="relatime"/>
|
|
|
|
<opt name="compress">lzo</opt>
|
|
|
|
<opt name="ssd"/>
|
|
|
|
<opt name="space_cache"/>
|
|
|
|
<opt name="subvolid">5</opt>
|
|
|
|
<opt name="subvol">/</opt>
|
|
|
|
</mount>
|
2019-11-06 02:21:04 -05:00
|
|
|
<mount source="esp" target="/mnt/aif/boot"/>
|
2019-10-28 01:26:31 -04:00
|
|
|
<mount source="swap" target="swap"/>
|
2019-11-06 02:21:04 -05:00
|
|
|
<mount source="vg1-lv1" target="/mnt/aif/mnt/pool"/>
|
|
|
|
<mount source="mdraid" target="/mnt/aif/mnt/raid"/>
|
2019-10-28 01:26:31 -04:00
|
|
|
</mountPoints>
|
2017-03-06 07:48:42 -05:00
|
|
|
</storage>
|
2019-11-10 05:39:33 -05:00
|
|
|
<network hostname="aiftest.square-r00t.net" provider="netctl">
|
2019-11-25 05:05:51 -05:00
|
|
|
<ethernet id="lan" device="auto" defroute="true" searchDomain="domain.tld">
|
2019-10-28 01:26:31 -04:00
|
|
|
<addresses>
|
2019-11-30 01:05:20 -05:00
|
|
|
<ipv4 auto="true">
|
2019-11-25 05:05:51 -05:00
|
|
|
<address gateway="192.168.1.1">192.168.1.5/24</address>
|
2019-10-28 01:26:31 -04:00
|
|
|
</ipv4>
|
2019-11-30 01:05:20 -05:00
|
|
|
<ipv6 auto="slaac">
|
2019-10-28 01:26:31 -04:00
|
|
|
<address>fde4:16b9:654b:bbfa::15/64</address>
|
|
|
|
</ipv6>
|
|
|
|
</addresses>
|
2019-11-30 01:05:20 -05:00
|
|
|
<routes>
|
2019-12-01 05:07:20 -05:00
|
|
|
<ipv4 auto="true">
|
2019-11-30 01:05:20 -05:00
|
|
|
<route gateway="192.168.1.1">10.1.1.0/24</route>
|
|
|
|
<route gateway="10.1.1.4">172.16.1.20/32</route>
|
|
|
|
</ipv4>
|
2019-12-01 05:07:20 -05:00
|
|
|
<ipv6 auto="true"/>
|
2019-11-30 01:05:20 -05:00
|
|
|
</routes>
|
|
|
|
<resolvers>
|
|
|
|
<ipv4 auto="false"/>
|
|
|
|
<ipv6 auto="false"/>
|
2019-11-25 05:05:51 -05:00
|
|
|
<resolver>64.6.64.6</resolver>
|
|
|
|
<resolver>4.2.2.1</resolver>
|
2019-10-28 01:26:31 -04:00
|
|
|
<resolver>8.8.8.8</resolver>
|
|
|
|
</resolvers>
|
2019-11-10 05:39:33 -05:00
|
|
|
</ethernet>
|
2019-11-25 05:05:51 -05:00
|
|
|
<wireless id="wlan" device="wlp2s0" essid="MyWirelessLan"
|
|
|
|
bssid="00-00-5E-00-53-00" defroute="false" searchDomain="wifi.lan">
|
2019-11-12 01:27:48 -05:00
|
|
|
<addresses>
|
2019-11-30 01:05:20 -05:00
|
|
|
<ipv4 auto="true"/>
|
2019-11-12 01:27:48 -05:00
|
|
|
</addresses>
|
2019-11-30 01:05:20 -05:00
|
|
|
<routes>
|
2019-12-02 22:06:27 -05:00
|
|
|
<ipv6 auto="true"/>
|
2019-11-30 01:05:20 -05:00
|
|
|
</routes>
|
2019-11-10 05:39:33 -05:00
|
|
|
<encryption>
|
|
|
|
<type>wpa2</type>
|
2019-12-02 22:06:27 -05:00
|
|
|
<creds>
|
|
|
|
<psk isKey="false">ABadWiFiPassword</psk>
|
|
|
|
<!-- Or the key itself. See the manual for ways to generate this. -->
|
|
|
|
<!-- <psk isKey="true">ca8981cbe55374c7408af0174604588111b4611832969f87fc5604fe4c36365c</psk> -->
|
|
|
|
</creds>
|
2019-11-10 05:39:33 -05:00
|
|
|
</encryption>
|
|
|
|
</wireless>
|
2017-03-06 08:30:31 -05:00
|
|
|
</network>
|
2019-12-07 00:16:46 -05:00
|
|
|
<system timezone="EST5EDT">
|
2019-10-28 03:40:26 -04:00
|
|
|
<rootPassword>
|
|
|
|
<passwordPlain>1ns3cur3p4ssw0rd</passwordPlain>
|
|
|
|
</rootPassword>
|
2019-10-28 01:26:31 -04:00
|
|
|
<locales>
|
|
|
|
<locale name="LANG">en_US.UTF-8</locale>
|
|
|
|
</locales>
|
2019-12-04 01:48:41 -05:00
|
|
|
<console>
|
|
|
|
<text>
|
|
|
|
<font>default8x16</font>
|
|
|
|
</text>
|
|
|
|
<keyboard>
|
|
|
|
<map>us</map>
|
|
|
|
</keyboard>
|
|
|
|
</console>
|
|
|
|
<!-- Note: The password hash below is "test"; don't waste your time trying to crack. :) -->
|
2019-10-28 03:40:26 -04:00
|
|
|
<users>
|
2017-03-08 11:50:06 -05:00
|
|
|
<user name="aifusr"
|
2019-10-28 01:26:31 -04:00
|
|
|
home="/opt/aifusr"
|
2017-03-08 11:50:06 -05:00
|
|
|
sudo="true"
|
|
|
|
comment="A test user for AIF.">
|
2019-10-28 03:40:26 -04:00
|
|
|
<password>
|
|
|
|
<passwordHash hashType="(detect)">
|
|
|
|
$6$WtxZKOyaahvvWQRG$TUys60kQhF0ffBdnDSJVTA.PovwCOajjMz8HEHL2H0ZMi0bFpDTQvKA7BqzM3nA.ZMAUxNjpJP1dG/eA78Zgw0
|
|
|
|
</passwordHash>
|
|
|
|
</password>
|
2019-10-28 01:26:31 -04:00
|
|
|
<xGroup name="admins" create="true"/>
|
|
|
|
<xGroup name="wheel"/>
|
|
|
|
<xGroup name="users"/>
|
2017-03-08 11:50:06 -05:00
|
|
|
</user>
|
|
|
|
</users>
|
2019-10-28 03:40:26 -04:00
|
|
|
<services>
|
2019-12-06 22:57:32 -05:00
|
|
|
<service status="true">sshd</service>
|
2019-10-28 03:40:26 -04:00
|
|
|
</services>
|
2017-03-08 11:50:06 -05:00
|
|
|
</system>
|
2017-03-06 08:30:31 -05:00
|
|
|
<pacman>
|
2019-10-09 07:18:10 -04:00
|
|
|
<mirrorList>
|
|
|
|
<mirror>http://arch.mirror.square-r00t.net/$repo/os/$arch</mirror>
|
2017-03-08 11:50:06 -05:00
|
|
|
<mirror>http://mirror.us.leaseweb.net/archlinux/$repo/os/$arch</mirror>
|
|
|
|
<mirror>http://ftp.osuosl.org/pub/archlinux/$repo/os/$arch</mirror>
|
|
|
|
<mirror>http://arch.mirrors.ionfish.org/$repo/os/$arch</mirror>
|
|
|
|
<mirror>http://mirrors.gigenet.com/archlinux/$repo/os/$arch</mirror>
|
|
|
|
<mirror>http://mirror.jmu.edu/pub/archlinux/$repo/os/$arch</mirror>
|
2019-10-09 07:18:10 -04:00
|
|
|
</mirrorList>
|
2020-01-03 03:38:35 -05:00
|
|
|
<repos>
|
|
|
|
<repo name="core" enabled="true" sigLevel="default">
|
|
|
|
<include>file:///etc/pacman.d/mirrorlist</include>
|
|
|
|
</repo>
|
|
|
|
<repo name="extra" enabled="true" sigLevel="default"/>
|
|
|
|
<repo name="community" enabled="true" sigLevel="default"/>
|
|
|
|
<repo name="multilib" enabled="true" sigLevel="default"/>
|
|
|
|
<repo name="testing" enabled="false" sigLevel="default"/>
|
|
|
|
<repo name="multilib-testing" enabled="false" sigLevel="default"/>
|
|
|
|
<repo name="sqrt" enabled="false" sigLevel="Required">
|
|
|
|
<mirror>https://$repo.arch.repo.square-r00t.net</mirror>
|
|
|
|
</repo>
|
|
|
|
</repos>
|
2017-03-06 08:30:31 -05:00
|
|
|
<software>
|
2019-10-28 03:40:26 -04:00
|
|
|
<package repo="core">sed</package>
|
|
|
|
<package>python</package>
|
|
|
|
<package>perl</package>
|
|
|
|
<package>openssh</package>
|
2017-03-06 08:30:31 -05:00
|
|
|
</software>
|
|
|
|
</pacman>
|
2019-10-28 01:26:31 -04:00
|
|
|
<bootloader type="grub" target="/boot" efi="true"/>
|
2017-05-04 03:16:26 -04:00
|
|
|
<scripts>
|
2019-10-28 03:40:26 -04:00
|
|
|
<pre>
|
|
|
|
<script>https://aif.square-r00t.net/sample-scripts/pre/first.sh</script>
|
|
|
|
<script>https://aif.square-r00t.net/sample-scripts/pre/second.pl</script>
|
|
|
|
</pre>
|
|
|
|
<post>
|
|
|
|
<script>https://aif.square-r00t.net/sample-scripts/post/first.sh</script>
|
|
|
|
<script>https://aif.square-r00t.net/sample-scripts/post/second.py</script>
|
|
|
|
</post>
|
2017-05-04 03:16:26 -04:00
|
|
|
</scripts>
|
2017-03-07 18:36:56 -05:00
|
|
|
</aif>
|
2019-11-03 01:40:23 -05:00
|
|
|
|