Moved the luks encryption to before boot is mounted
This commit is contained in:
parent
ad1b628bce
commit
6971d6d9f2
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user