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
 

Since swapfile shouldn't be in a snapshot, and I want my system encrypted therefore I am asking if it could be possible to make efi partition big enough to include swapfile inside it?

I can't find documentation for this process, so would it require some extra steps to make it work?

you are viewing a single comment's thread
view the rest of the comments
[–] patatahooligan 1 points 2 weeks ago

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.