From f8f5bb623dcc818f8b29b93b0c43d32d4a192672 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Thu, 28 Dec 2023 12:49:44 +0100 Subject: [PATCH] crypt/mkswapfile --- bash/hetzner-rescue.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/bash/hetzner-rescue.sh b/bash/hetzner-rescue.sh index 52e9e1f..e08cba2 100644 --- a/bash/hetzner-rescue.sh +++ b/bash/hetzner-rescue.sh @@ -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' }