luks_format

This commit is contained in:
Marc Beninca 2024-11-20 09:31:53 +01:00
parent 04f64f68a8
commit c641c95c0d
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
3 changed files with 5 additions and 5 deletions

View file

@ -92,7 +92,7 @@ rescue_wipe_0_init_hetzner_8_8() {
fs_raid_create \
"crypt" "00000000:00000000:00000000:00000001" ${members}
# encrypt
luks_format "${passphrase}" "/dev/md/crypt"
sh_fs_luks_format "${passphrase}" "/dev/md/crypt"
# open
echo "${passphrase}" |
cryptsetup luksOpen "/dev/md/crypt" "crypt"
@ -107,7 +107,7 @@ rescue_wipe_2_make_hetzner_8_8() {
# read passphrase
passphrase="$(read_passphrase)"
# encrypt
luks_format "${passphrase}" "/dev/md/crypt"
sh_fs_luks_format "${passphrase}" "/dev/md/crypt"
# open
echo "${passphrase}" |
cryptsetup luksOpen "/dev/md/crypt" "crypt"