8,560
edits
(Updating to match new version of source page) |
(Updating to match new version of source page) |
||
Line 153: | Line 153: | ||
These commands create an empty swapfile, disable COW for that file and ensure that compression is disabled. | These commands create an empty swapfile, disable COW for that file and ensure that compression is disabled. | ||
{{tip|To stay compatible with Timeshift, it is necessary to create the swapfile outside the root subvolume "@". | |||
{{RootCmd|command=btrfs subvolume create /@swapfile}} | |||
Just replace /swapfile with /@swapfile/swapfile.}} | |||
==Swapfiles on ZFS== | ==Swapfiles on ZFS== | ||
Line 206: | Line 211: | ||
UUID=c2430cf1-8ea9-4422-a5c5-5a38779194c3 swap swap defaults,noatime 0 2 | UUID=c2430cf1-8ea9-4422-a5c5-5a38779194c3 swap swap defaults,noatime 0 2 | ||
/swapfile none swap defaults 0 0 | /swapfile none swap defaults 0 0 | ||
With hibernation configured it will also be necessary to edit {{ic|/etc/default/grub}}. Find and remove option {{ic|<nowiki>resume=UUID=...</nowiki>}} or replace the UUID with a new proper value. In the example above, we would remove this text: | |||
resume=UUID=c2430cf1-8ea9-4422-a5c5-5a38779194c3 | |||
Then run: | |||
sudo update-grub | |||
If removing hibernation entirely then also delete {{ic|resume}} from the {{ic|HOOKS}} line in {{ic|/etc/mkinitpcio.conf}} and run: | |||
sudo mkinitpcio -P | |||
Line 216: | Line 229: | ||
{{note|If you don't delete your existing swap partition it will be automatically activated by systemd even though you have removed it from fstab}} | {{note|If you don't delete your existing swap partition it will be automatically activated by systemd even though you have removed it from fstab}} | ||
==Using zswap with systemd-swap== | ==Using zswap with systemd-swap== |