Previous: Erase the partition
References:
Format the EFI system partition and label it (replace /dev/sda1 accordingly):
mkfs.fat -F 32 /dev/sda1
fatlabel /dev/sda1 EFI
Format the LUKS partition and label it (replace /dev/sda2 accordingly):
cryptsetup luksFormat /dev/sda2
cryptsetup config /dev/sda2 --label "LUKS"
Check the results with
cryptsetup luksDump /dev/sda2
lsblk -f
Open the LUKS partition:
cryptsetup open /dev/sda2 root
Format and label the mapper device:
mkfs.btrfs -L LINUX /dev/mapper/root
Next: Mount the partitions