From fac83bb85b8a26d32aca0ed8815495e2f199f69b Mon Sep 17 00:00:00 2001 From: simono41 Date: Fri, 6 Apr 2018 17:09:08 +0200 Subject: [PATCH] fix --- arch-install | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/arch-install b/arch-install index 337d309..d300d6f 100755 --- a/arch-install +++ b/arch-install @@ -81,10 +81,15 @@ function formatencrypt() { if [ "${verschluesselung}" == "y" ]; then echo "Please write big YES" cryptsetup -c aes-xts-plain64 -y -s 512 luksFormat ${device}${rootpartitionnummer} + mountencrypt fi } +function mountencrypt() { + cryptsetup luksOpen ${device}${rootpartitionnummer} luks0 +} + function partionierenmitswap() { wipefs -a -f ${device} sgdisk -o ${device} @@ -1031,7 +1036,7 @@ then fi else if [ "${verschluesselung}" == "y" ]; then - cryptsetup luksOpen ${device}${rootpartitionnummer} luks0 + mountencrypt fi fi @@ -1066,7 +1071,7 @@ elif [ "${Partition}" == "bios" ]; then fi else if [ "${verschluesselung}" == "y" ]; then - cryptsetup luksOpen ${device}${rootpartitionnummer} luks0 + mountencrypt fi fi