crypt/mkswapfile

This commit is contained in:
Marc Beninca 2023-12-28 12:49:44 +01:00
parent ac69623ed3
commit f8f5bb623d

View file

@ -295,11 +295,11 @@ function hetzner-rescue-wipe-8-8-2 {
mount \
--options 'autodefrag,compress=zstd' \
'/dev/mapper/crypt' '/media/crypt'
# format swap
mkswap \
--label 'swap' \
-U '06234a0e-b29a-3a84-71db-d5ec4bada557' \
'/dev/mapper/crypt-swap'
# make swap file
btrfs filesystem mkswapfile \
--size '64g' \
--uuid '00000000-0000-0000-0000-000000000005' \
'/media/crypt/swap'
# close
cryptsetup luksClose 'crypt'
}