gdisk '/dev/sda'
mkfs.fat -F32 '/dev/sda1'
mkfs.xfs '/dev/sda2'
mkfs.f2fs '/dev/sda2'
mount '/dev/sda2' '/mnt'
mkdir -p '/mnt/boot'
mount '/dev/sda1' '/mnt/boot'
gdisk '/dev/sda'
cryptsetup -v -c 'aes-xts-plain64' -s '512' -h 'sha512' -i '5000' --use-random luksFormat '/dev/sda2'
cryptsetup luksOpen '/dev/sda2' 'lvm'
pvcreate '/dev/mapper/lvm'
vgcreate 'arch' '/dev/mapper/lvm'
lvcreate -l 100%FREE 'arch' -n 'root'
pvcreate '/dev/mapper/sda2'
vgcreate 'arch' '/dev/mapper/sda2'
lvcreate -l 100%FREE 'arch' -n 'root'
mkfs.fat -F32 '/dev/sda1'
mkfs.xfs '/dev/mapper/arch-root'
mkfs.f2fs '/dev/mapper/arch-root'
mount '/dev/mapper/arch-root' '/mnt'
mkdir -p '/mnt/boot'
mount '/dev/sda1' '/mnt/boot'
fdisk '/dev/sda'
mkfs.xfs '/dev/sda1'
mount '/dev/sda1' '/mnt'