Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
support swapfiles #1166
Is your feature request related to a problem? Please describe.
Describe the solution you'd like
Swapfiles are simply crated by fallocating a file on the disk and adding it to the /etc/fstab.
As an example Ubiquity's implementation is here https://packaging.neon.kde.org/forks/ubiquity.git/tree/d-i/source/partman-swapfile/finish.d?h=Neon/unstable
Not all filesystems support swapfiles (e.g. BTRFS does not) so there probably to be some flexibility. Even when a swapfile was opted for, actual file system constraints may make it an unsuitable.
Support for swapfile (Btrfs) has been added to the 5.0 kernel, but it needs to be nocow.
[Admin edit by Kevin Kofler: I made the links clickable.]