classy-giraffe / easy-arch

Script for boostrapping Arch Linux with BTRFS, snapshots and LUKS encryption (UEFI only).
https://classy-giraffe.github.io/easy-arch
Apache License 2.0
237 stars 54 forks source link

how to use swap partition instead of ZRAM #44

Closed hack3r-0m closed 2 years ago

hack3r-0m commented 2 years ago

what should I replace in the script if I want to use btrfs swap subvolume with swapfile? suspend & hibernate requires swap.

classy-giraffe commented 2 years ago

You should create a separate btrfs volume, mount it, put a swapfile on it and then set up grub or whatever bootloader you use to use that file as a resume partition (in GRUB you'd use something like this: resume=UUID=<uuid of the volume>.