From 7bce373af61db6b14ec2c74b71eafff160b708b4 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 12 Nov 2024 23:27:19 +0100 Subject: [PATCH] =?UTF-8?q?=E2=86=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bash/fs.sh | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/bash/fs.sh b/bash/fs.sh index 567479d..07bd84f 100644 --- a/bash/fs.sh +++ b/bash/fs.sh @@ -78,20 +78,22 @@ fs_wipe() { } luks_format() { - local device="${1}" - local passphrase="${2}" + local passphrase="${1}" + local device="${2}" + local label="${3}" + local uuid="${4}" if [ -b "${device}" ]; then echo "${passphrase}" | cryptsetup \ - --verbose \ --batch-mode \ - --type "luks2" \ - --pbkdf "argon2id" \ --cipher "aes-xts-plain64" \ + --hash "sha512" \ --iter-time 4096 \ --key-size 512 \ - --hash "sha512" \ + --pbkdf "argon2id" \ + --type "luks2" \ --use-random \ + --verbose \ luksFormat \ "${device}" fi