This is my installer for Arch Linux. It sets up a BTRFS system with encrypted /boot
and full snapper support (both snapshotting and rollback work!). It also includes various system hardening configurations.
The script is based on easy-arch. However, it diverges substantially from the original project does not follow its development.
Visit my Matrix group: https://invite.arcticfoxes.net/#/#tommy:arcticfoxes.net
git clone https://github.com/tommytran732/Arch-Setup-Script/
cd Arch-Setup-Script
chmod u+x ./install.sh
./install.sh
The partition layout I use allows us to replicate the behavior found in openSUSE 🦎
/boot
, /boot/efi
, /var/log
, /var/crash
, /var/tmp
, /var/spool
, /var/lib/libvirt/images
are excluded from the snapshots as they either should be persistent or are just temporary files. /cryptkey
is excluded as we do not want the encryption key to be included in the snapshots, which could be sent to another device as a backup.@/.snapshots/X/snapshot
. Since this is an encrypted /boot
setup, GRUB will prompt you for your encryption password and decrypt the drive so that it can access the kernel and initramfs. I am unaware of any way to make it use a TPM + PIN setup.
The implication of this is that an attacker can change your secure boot state with a programmer, replace your grubx64.efi and it will not be detected until its too late.
This type of attack can theoratically be solved by splitting /boot out to a seperate partition and encrypt the root filesystem separately. The key protector for the root filesystem can then be sealed to a TPM with PCR 0+1+2+3+5+7+14. It is a bit more complicated to set up so my installer does not support this (yet!).