this post was submitted on 13 Jan 2025
3 points (100.0% liked)
Arch Linux
7841 readers
1 users here now
The beloved lightweight distro
founded 5 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Just follow the instructions here. Snapshots do not recursively traverse subvolumes. So putting the swapfile into its own subvolume means it will be excluded from any snapshots of / . The command should also set No_COW which also implicitly turns of compression if you use that.
I'll repeat what another user said because it's important. If you want filesystem encryption you also want swap encryption. Otherwise any data is liable to get leaked by being written to swap.