fix
This commit is contained in:
parent
b3eda455ee
commit
fac83bb85b
1 changed files with 7 additions and 2 deletions
|
@ -81,10 +81,15 @@ function formatencrypt() {
|
||||||
if [ "${verschluesselung}" == "y" ]; then
|
if [ "${verschluesselung}" == "y" ]; then
|
||||||
echo "Please write big YES"
|
echo "Please write big YES"
|
||||||
cryptsetup -c aes-xts-plain64 -y -s 512 luksFormat ${device}${rootpartitionnummer}
|
cryptsetup -c aes-xts-plain64 -y -s 512 luksFormat ${device}${rootpartitionnummer}
|
||||||
|
mountencrypt
|
||||||
fi
|
fi
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function mountencrypt() {
|
||||||
|
cryptsetup luksOpen ${device}${rootpartitionnummer} luks0
|
||||||
|
}
|
||||||
|
|
||||||
function partionierenmitswap() {
|
function partionierenmitswap() {
|
||||||
wipefs -a -f ${device}
|
wipefs -a -f ${device}
|
||||||
sgdisk -o ${device}
|
sgdisk -o ${device}
|
||||||
|
@ -1031,7 +1036,7 @@ then
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [ "${verschluesselung}" == "y" ]; then
|
if [ "${verschluesselung}" == "y" ]; then
|
||||||
cryptsetup luksOpen ${device}${rootpartitionnummer} luks0
|
mountencrypt
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -1066,7 +1071,7 @@ elif [ "${Partition}" == "bios" ]; then
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
if [ "${verschluesselung}" == "y" ]; then
|
if [ "${verschluesselung}" == "y" ]; then
|
||||||
cryptsetup luksOpen ${device}${rootpartitionnummer} luks0
|
mountencrypt
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue