From 799732c8ef52e5587e8cb725c50a478e30811b0c Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Tue, 12 Nov 2024 22:59:49 +0100 Subject: [PATCH] swaps --- bash/rescue-hetzner.sh | 6 ++---- bash/rescue-ovh.sh | 6 ++---- 2 files changed, 4 insertions(+), 8 deletions(-) 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" }