Better implementation of cryptsetup.

This commit is contained in:
Tommaso Chiti 2021-10-31 11:09:17 +01:00
parent 16c4b5b628
commit c3cc5b8414

View file

@ -119,9 +119,9 @@ mkfs.fat -F 32 $ESP &>/dev/null
# Creating a LUKS Container for the root partition. # Creating a LUKS Container for the root partition.
print "Creating LUKS Container for the root partition." print "Creating LUKS Container for the root partition."
cryptsetup luksFormat $Cryptroot read -r -p "Insert password for the LUKS container: " password
print "Opening the newly created LUKS Container." echo -n "$hostname" | cryptsetup luksFormat $Cryptroot -d -
cryptsetup open $Cryptroot cryptroot echo -n "$hostname" | cryptsetup open $Cryptroot cryptroot -d -
BTRFS="/dev/mapper/cryptroot" BTRFS="/dev/mapper/cryptroot"
# Formatting the LUKS Container as BTRFS. # Formatting the LUKS Container as BTRFS.