From 6971d6d9f27a34f86ba21de2f1f0d8658dee53ff Mon Sep 17 00:00:00 2001 From: Luke Else Date: Thu, 20 Mar 2025 23:24:51 +0000 Subject: [PATCH] Moved the luks encryption to before boot is mounted --- install.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/install.sh b/install.sh index 7e81f18..9633e92 100644 --- a/install.sh +++ b/install.sh @@ -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