Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support swapfiles #1166

apachelogger opened this issue Jun 3, 2019 · 1 comment


None yet
2 participants
Copy link

commented Jun 3, 2019

Is your feature request related to a problem? Please describe.
I hate it when my partition table is getting extra complexity because the installer thinks this is the 1980's and I need a dedicated swap partition.

Describe the solution you'd like
As a distribution I'd like a config option to switch calamares from swap-partitioning mode to swapfiles. In this mode it'd not create a swap partition but instead add a swapfile to the partition / is going to be on.

Additional context
Previously seen as #1006 which got partially resolved by having some of the infrastructure to support this but swapfile support itself was never actually added.

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

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.


This comment has been minimized.

Copy link

commented Jul 20, 2019

Support for swapfile (Btrfs) has been added to the 5.0 kernel, but it needs to be nocow.
These are the steps to activate it correctly:
I reported the bug on launchpad (ubiquity) :

[Admin edit by Kevin Kofler: I made the links clickable.]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.