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