These scripts setup a blank hardware server according to our requirements including partitions, raids, debootstrap, package installation and various other configuration. The goal is to create a server ready to join into the swarm.
`setup.sh` executes the hardware specific template files, debootstraps and invokes the actual installer inside the fresh environment.
As much as possible should be done in the chroot, as only there we have control over the software (the live system is normally provided by the hardware provider).
Templates (`hardware/*`) consist of three files:
*`esp` - a symlink to the desired ESP partition
*`parted.sh` - script to prepare the partitions. Should create ESP (/boot/efi), md0 (/) and md1 (/boot)
*`network.sh` - creates the neccessary configs in /etc/systemd/network
`config/*` gets copied to the chroot and contains static config files