summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xinstall.sh8
1 files changed, 3 insertions, 5 deletions
diff --git a/install.sh b/install.sh
index 661c078..b0bdcb8 100755
--- a/install.sh
+++ b/install.sh
@@ -112,11 +112,9 @@ printf ',%s,U,*\n,+,L\n' "${boot_size}" | sfdisk -qf -X gpt ${drive}
# Encryption setup
if [[ $encrypt == true ]]; then
# Create encrypted drive
- echo "${password}" | cryptsetup --type luks2 \
- --label LUKS \
- --cipher aes-xts-plain64 \
- --hash sha512 \
- --use-random \
+ echo "${password}" | cryptsetup --hash sha512 \
+ --pbkdf pbkdf2 \
+ --label LUKS \
luksFormat "${root}"
# Open encrypted drive