btrfs_swap

This commit is contained in:
Marc Beninca 2024-11-20 09:38:22 +01:00
parent beb4695b29
commit 844b2f21d3
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F
3 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@ fs_make_btrfs() {
fi fi
} }
fs_make_btrfs_swap() { sh_fs_make_btrfs_swap() {
local path="${1}" local path="${1}"
local size="${2}" local size="${2}"
local uuid="${3}" local uuid="${3}"

View file

@ -122,6 +122,6 @@ rescue_wipe_2_make_hetzner_8_8() {
--options "autodefrag,compress-force=zstd" \ --options "autodefrag,compress-force=zstd" \
"/dev/mapper/crypt" "/media/crypt" "/dev/mapper/crypt" "/media/crypt"
# make swap file # make swap file
fs_make_btrfs_swap "/media/crypt/swap" "64g" \ sh_fs_make_btrfs_swap "/media/crypt/swap" "64g" \
"00000000-0000-0000-0000-000000000005" "00000000-0000-0000-0000-000000000005"
} }

View file

@ -66,6 +66,6 @@ rescue_wipe_2_make_ovh_vle2() {
mount --options "autodefrag,compress-force=zstd" \ mount --options "autodefrag,compress-force=zstd" \
"/dev/mapper/crypt" "/media/crypt" "/dev/mapper/crypt" "/media/crypt"
# crypt / swap # crypt / swap
fs_make_btrfs_swap "/media/crypt/swap" "4g" \ sh_fs_make_btrfs_swap "/media/crypt/swap" "4g" \
"00000000-0000-0000-0000-000000000005" "00000000-0000-0000-0000-000000000005"
} }