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 \ mount \
--options 'autodefrag,compress=zstd' \ --options 'autodefrag,compress=zstd' \
'/dev/mapper/crypt' '/media/crypt' '/dev/mapper/crypt' '/media/crypt'
# format swap # make swap file
mkswap \ btrfs filesystem mkswapfile \
--label 'swap' \ --size '64g' \
-U '06234a0e-b29a-3a84-71db-d5ec4bada557' \ --uuid '00000000-0000-0000-0000-000000000005' \
'/dev/mapper/crypt-swap' '/media/crypt/swap'
# close # close
cryptsetup luksClose 'crypt' cryptsetup luksClose 'crypt'
} }