From 05a7499b9dc2f7d7de94c0cd664ec492a424b5a6 Mon Sep 17 00:00:00 2001 From: "Kevin Veen-Birkenbach [aka. Frantz]" Date: Tue, 29 Sep 2020 15:13:38 +0200 Subject: [PATCH] Solved password bug --- scripts/image/setup.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/scripts/image/setup.sh b/scripts/image/setup.sh index b2dfb18..e62d69c 100644 --- a/scripts/image/setup.sh +++ b/scripts/image/setup.sh @@ -450,11 +450,8 @@ if [ "$encrypt_system" == "y" ] echo "sed -i 's/$search_modules/$replace_modules/g' $mkinitcpio_path &&" echo "sed -i 's/$search_hooks/$replace_hooks/g' $mkinitcpio_path &&" echo "mkinitcpio -P &&" - echo "( echo 'YES' - echo $standart_luks_password - echo $standart_luks_password - )|sudo cryptsetup luksFormat -c aes-xts-plain64 -s 512 -h sha512 --use-random -i 1000 $encrypted_partition_path &&" - echo "echo $standart_luks_password | sudo cryptsetup luksOpen $encrypted_partition_path root &&" + echo "echo '$standart_luks_password' |sudo cryptsetup -v luksFormat -c aes-xts-plain64 -s 512 -h sha512 --use-random -i 1000 $encrypted_partition_path &&" + echo "echo '$standart_luks_password' | sudo cryptsetup -v luksOpen $encrypted_partition_path root &&" echo "mkfs.ext4 $root_mapper_path &&" echo "mount $root_mapper_path /mnt &&" echo "rsync --info=progress2 -axHAX / /mnt/ &&"