diff --git a/bash/rescue-hetzner.sh b/bash/rescue-hetzner.sh index 142e07d..9637910 100644 --- a/bash/rescue-hetzner.sh +++ b/bash/rescue-hetzner.sh @@ -159,8 +159,6 @@ rescue_wipe_2_make_hetzner_8_8() { --options "autodefrag,compress-force=zstd" \ "/dev/mapper/crypt" "/media/crypt" # make swap file - btrfs filesystem mkswapfile \ - --size "64g" \ - --uuid "00000000-0000-0000-0000-000000000005" \ - "/media/crypt/swap" + fs_make_btrfs_swap "/media/crypt/swap" "64g" \ + "00000000-0000-0000-0000-000000000005" } diff --git a/bash/rescue-ovh.sh b/bash/rescue-ovh.sh index 4792c6c..e15c9d9 100644 --- a/bash/rescue-ovh.sh +++ b/bash/rescue-ovh.sh @@ -92,8 +92,6 @@ rescue_wipe_2_make_ovh_vle2() { mount --options "autodefrag,compress-force=zstd" \ "/dev/mapper/crypt" "/media/crypt" # crypt / swap - btrfs filesystem mkswapfile \ - --size "4g" \ - --uuid "00000000-0000-0000-0000-000000000005" \ - "/media/crypt/swap" + fs_make_btrfs_swap "/media/crypt/swap" "4g" \ + "00000000-0000-0000-0000-000000000005" }