diff options
author | Krystian Chachuła <krystian@krystianch.com> | 2021-11-16 17:08:02 +0100 |
---|---|---|
committer | Krystian Chachuła <krystian@krystianch.com> | 2021-11-16 17:08:02 +0100 |
commit | 95786eefc6861bfce3cafa6cf862f715cd4dc31b (patch) | |
tree | 97e55a0587a9d88001c7fc130f5072272875ac66 /setup-disk.in | |
parent | 6b91d08af900af55f41fcc65423ace7868bda18a (diff) | |
download | alpine-conf-95786eefc6861bfce3cafa6cf862f715cd4dc31b.zip |
setup-disk: enable password verification in luksFormat
Diffstat (limited to 'setup-disk.in')
-rw-r--r-- | setup-disk.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/setup-disk.in b/setup-disk.in index dc5c1ac..c060ae2 100644 --- a/setup-disk.in +++ b/setup-disk.in @@ -1185,7 +1185,8 @@ setup_crypt() { echo "Preparing partition for encryption." >&2 echo "You will be prompted for your password at boot." >&2 echo "If you forget your password, your data will be lost." >&2 - cryptsetup luksFormat -q --type luks2 "$dev" >&2 || return 1 + cryptsetup luksFormat --batch-mode --verify-passphrase \ + --type luks2 "$dev" >&2 || return 1 echo "Enter password again to unlock disk for installation." >&2 cryptsetup open "$dev" "$dmname" >&2 || return 1 echo "/dev/mapper/$dmname" |