formats
This commit is contained in:
parent
c4f68fc29b
commit
b557ddde70
2 changed files with 4 additions and 52 deletions
|
@ -105,19 +105,7 @@ rescue_wipe_0_init_hetzner_8_8() {
|
||||||
--uuid "00000000:00000000:00000000:00000001" \
|
--uuid "00000000:00000000:00000000:00000001" \
|
||||||
"${members[@]}"
|
"${members[@]}"
|
||||||
# encrypt
|
# encrypt
|
||||||
echo "${passphrase}" |
|
luks_format "${passphrase}" "/dev/md/crypt"
|
||||||
cryptsetup \
|
|
||||||
--verbose \
|
|
||||||
--batch-mode \
|
|
||||||
--type "luks2" \
|
|
||||||
--pbkdf "argon2id" \
|
|
||||||
--cipher "aes-xts-plain64" \
|
|
||||||
--iter-time 8192 \
|
|
||||||
--key-size 512 \
|
|
||||||
--hash "sha512" \
|
|
||||||
--use-random \
|
|
||||||
luksFormat \
|
|
||||||
"/dev/md/crypt"
|
|
||||||
# open
|
# open
|
||||||
echo "${passphrase}" |
|
echo "${passphrase}" |
|
||||||
cryptsetup luksOpen "/dev/md/crypt" "crypt"
|
cryptsetup luksOpen "/dev/md/crypt" "crypt"
|
||||||
|
@ -132,19 +120,7 @@ rescue_wipe_2_make_hetzner_8_8() {
|
||||||
# read passphrase
|
# read passphrase
|
||||||
passphrase="$(read_passphrase)"
|
passphrase="$(read_passphrase)"
|
||||||
# encrypt
|
# encrypt
|
||||||
echo "${passphrase}" |
|
luks_format "${passphrase}" "/dev/md/crypt"
|
||||||
cryptsetup \
|
|
||||||
--verbose \
|
|
||||||
--batch-mode \
|
|
||||||
--type "luks2" \
|
|
||||||
--pbkdf "argon2id" \
|
|
||||||
--cipher "aes-xts-plain64" \
|
|
||||||
--iter-time 8192 \
|
|
||||||
--key-size 512 \
|
|
||||||
--hash "sha512" \
|
|
||||||
--use-random \
|
|
||||||
luksFormat \
|
|
||||||
"/dev/md/crypt"
|
|
||||||
# open
|
# open
|
||||||
echo "${passphrase}" |
|
echo "${passphrase}" |
|
||||||
cryptsetup luksOpen "/dev/md/crypt" "crypt"
|
cryptsetup luksOpen "/dev/md/crypt" "crypt"
|
||||||
|
|
|
@ -38,19 +38,7 @@ rescue_wipe_0_init_ovh_vle2() {
|
||||||
# crypt / wipe
|
# crypt / wipe
|
||||||
fs_wipe "${device}1" "1G" 1
|
fs_wipe "${device}1" "1G" 1
|
||||||
# crypt / encrypt
|
# crypt / encrypt
|
||||||
echo "${passphrase}" |
|
luks_format "${passphrase}" "${device}1"
|
||||||
cryptsetup \
|
|
||||||
--verbose \
|
|
||||||
--batch-mode \
|
|
||||||
--type "luks2" \
|
|
||||||
--pbkdf "argon2id" \
|
|
||||||
--cipher "aes-xts-plain64" \
|
|
||||||
--iter-time 4096 \
|
|
||||||
--key-size 512 \
|
|
||||||
--hash "sha512" \
|
|
||||||
--use-random \
|
|
||||||
luksFormat \
|
|
||||||
"${device}1"
|
|
||||||
# crypt / open
|
# crypt / open
|
||||||
echo "${passphrase}" |
|
echo "${passphrase}" |
|
||||||
cryptsetup luksOpen "${device}1" "crypt"
|
cryptsetup luksOpen "${device}1" "crypt"
|
||||||
|
@ -66,19 +54,7 @@ rescue_wipe_2_make_ovh_vle2() {
|
||||||
# read passphrase
|
# read passphrase
|
||||||
passphrase="$(read_passphrase)"
|
passphrase="$(read_passphrase)"
|
||||||
# crypt / encrypt
|
# crypt / encrypt
|
||||||
echo "${passphrase}" |
|
luks_format "${passphrase}" "${device}1"
|
||||||
cryptsetup \
|
|
||||||
--verbose \
|
|
||||||
--batch-mode \
|
|
||||||
--type "luks2" \
|
|
||||||
--pbkdf "argon2id" \
|
|
||||||
--cipher "aes-xts-plain64" \
|
|
||||||
--iter-time 4096 \
|
|
||||||
--key-size 512 \
|
|
||||||
--hash "sha512" \
|
|
||||||
--use-random \
|
|
||||||
luksFormat \
|
|
||||||
"${device}1"
|
|
||||||
# crypt / open
|
# crypt / open
|
||||||
echo "${passphrase}" |
|
echo "${passphrase}" |
|
||||||
cryptsetup luksOpen "${device}1" "crypt"
|
cryptsetup luksOpen "${device}1" "crypt"
|
||||||
|
|
Loading…
Reference in a new issue