This commit is contained in:
Marc Beninca 2023-12-28 12:06:27 +01:00
parent f571ad3307
commit 5ab4a0054a

View file

@ -284,16 +284,16 @@ function hetzner-rescue-wipe-8-8-2 {
# open
echo "${passphrase}" \
| cryptsetup luksOpen '/dev/md/crypt' 'crypt'
# format swap
mkswap \
--label 'swap' \
-U '06234a0e-b29a-3a84-71db-d5ec4bada557' \
'/dev/mapper/crypt-swap'
# format data
mkfs.ext4 \
-L 'data' \
-U '006234a0-eb29-a3a8-471d-bd5ec4bada55' \
'/dev/mapper/crypt-data'
# format swap
mkswap \
--label 'swap' \
-U '06234a0e-b29a-3a84-71db-d5ec4bada557' \
'/dev/mapper/crypt-swap'
# close
cryptsetup luksClose 'crypt'
}