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

How to make swapfc file persistent? #61

Open
0x6d3f9c opened this issue Sep 14, 2018 · 3 comments
Open

How to make swapfc file persistent? #61

0x6d3f9c opened this issue Sep 14, 2018 · 3 comments

Comments

@0x6d3f9c
Copy link

I wonder why always recreating "/var/lib/systemd-swap/swapfc/1" every time when systemd-swap service is restarted.

@nefelim4ag
Copy link
Owner

"State machine",
i.e. service must return to same state, as state where it started.

@ngoquang2708
Copy link

I think this behaviour is good for swap file on SSD as we don't use the same location over and over again which can cause wearing.

@Zeioth
Copy link

Zeioth commented May 11, 2020

+1 to implement an option to make swap persistent (even after rebooting). I love systemd-swap because it guarantees I won't run out of swap no matter what. But when your hard disk is encrypted there's no point on re-creating it every time. It slows down shutdown in 1:30 minutes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants