From c3cc5b8414da1ed6b26d0c4fb651b923cd3aa45b Mon Sep 17 00:00:00 2001 From: Tommaso Chiti Date: Sun, 31 Oct 2021 11:09:17 +0100 Subject: [PATCH] Better implementation of cryptsetup. --- easy-arch.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/easy-arch.sh b/easy-arch.sh index 483ee54..4166ed7 100644 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -119,9 +119,9 @@ mkfs.fat -F 32 $ESP &>/dev/null # Creating a LUKS Container for the root partition. print "Creating LUKS Container for the root partition." -cryptsetup luksFormat $Cryptroot -print "Opening the newly created LUKS Container." -cryptsetup open $Cryptroot cryptroot +read -r -p "Insert password for the LUKS container: " password +echo -n "$hostname" | cryptsetup luksFormat $Cryptroot -d - +echo -n "$hostname" | cryptsetup open $Cryptroot cryptroot -d - BTRFS="/dev/mapper/cryptroot" # Formatting the LUKS Container as BTRFS.