cryptsetup

This commit is contained in:
Marc Beninca 2023-10-03 09:52:33 +02:00
parent 8fbfabb388
commit eeda17878a

View file

@ -229,9 +229,6 @@ function hetzner-rescue-wipe-12-10-10 {
-L 'boot' \ -L 'boot' \
-U '6234a0eb-29a3-a847-1dbd-5ec4bada5579' \ -U '6234a0eb-29a3-a847-1dbd-5ec4bada5579' \
'/dev/md/boot' '/dev/md/boot'
}
function hetzner-rescue-wipe-12-10-10-extra {
# encrypt # encrypt
echo "${passphrase}" \ echo "${passphrase}" \
| cryptsetup \ | cryptsetup \
@ -245,7 +242,10 @@ function hetzner-rescue-wipe-12-10-10-extra {
--hash 'sha512' \ --hash 'sha512' \
--use-random \ --use-random \
luksFormat \ luksFormat \
'/dev/sda1' '/dev/md/crypt'
}
function hetzner-rescue-wipe-12-10-10-extra {
# open # open
echo "${passphrase}" \ echo "${passphrase}" \
| cryptsetup luksOpen '/dev/sda1' 'crypt' | cryptsetup luksOpen '/dev/sda1' 'crypt'