Update luks.sh

main
Bensuperpc 10 months ago committed by GitHub
parent a1ae8bfcd5
commit 7a18dd860a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      partition/luks.sh

@ -47,7 +47,7 @@ if (( $# == 2 )); then
UUID=$(uuidgen)
echo "UUID: ${UUID}"
sudo umount "$PARTITION" || true
sudo cryptsetup -v --type luks2 --pbkdf argon2id --cipher aes-xts-plain64 --key-slot 1 --key-size 512 --integrity hmac-sha512 --hash sha512 --iter-time 2000 --use-urandom --verify-passphrase luksFormat --label="$LABEL" "$PARTITION"
sudo cryptsetup -v --type luks2 --pbkdf argon2id --cipher aes-xts-plain64 --key-slot 1 --key-size 512 --integrity hmac-sha512 --hash sha512 --sector-size 4096 --iter-time 2000 --use-urandom --verify-passphrase luksFormat --label="$LABEL" "$PARTITION"
sudo cryptsetup luksHeaderBackup "$PARTITION" --header-backup-file "$LABEL-luks_header_backup"
sudo cryptsetup -v luksOpen "$PARTITION" "${UUID}"

Loading…
Cancel
Save