Moved the luks encryption to before boot is mounted

This commit is contained in:
Luke Else 2025-03-20 23:24:51 +00:00
parent ad1b628bce
commit 6971d6d9f2

View File

@ -17,6 +17,12 @@ mkfs.ext4 ${DISK}2
# Mount the partitions
mount ${DISK}2 /mnt
cryptsetup luksFormat /dev/sda2
cryptsetup open /dev/sda2 root
mkfs.ext4 /dev/mapper/root
mount /dev/mapper/root /mnt
mkdir -p /mnt/boot
mount ${DISK}1 /mnt/boot