This commit is contained in:
Marc Beninca 2023-12-28 12:04:51 +01:00
parent 02f2f5323c
commit f571ad3307

View file

@ -284,14 +284,6 @@ function hetzner-rescue-wipe-8-8-2 {
# open
echo "${passphrase}" \
| cryptsetup luksOpen '/dev/md/crypt' 'crypt'
# pv
pvcreate '/dev/mapper/crypt'
# vg
vgcreate 'crypt' '/dev/mapper/crypt'
# lv swap
lvcreate --name 'swap' --size '137438953472b' 'crypt'
# lv data
lvcreate --name 'data' --extents '100%FREE' 'crypt'
# format swap
mkswap \
--label 'swap' \
@ -302,8 +294,6 @@ function hetzner-rescue-wipe-8-8-2 {
-L 'data' \
-U '006234a0-eb29-a3a8-471d-bd5ec4bada55' \
'/dev/mapper/crypt-data'
# vg off
vgchange --activate n 'crypt'
# close
cryptsetup luksClose 'crypt'
}