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

nixos-generate-config: Change how auto-generated swap files are detected #101529

Closed
wants to merge 1 commit into from

Conversation

buckley310
Copy link
Contributor

Motivation for this change

nixos-generate-config.pl currently does not have enough information to intelligently decide which swap devices should be automatically configured and which should not. The current logic is fairly basic, and results in edge cases: #86353

This patch makes NixOS record at rebuild time which swap devices were manually configured, so the script doesn't have to guess later.


Looking for feedback. This patch does work, but is it the best solution to the problem? Can anyone think of a better one?

The /etc/* file is just a placeholder. The file probably belongs somewhere else.

@stale
Copy link

stale bot commented Apr 26, 2021

I marked this as stale due to inactivity. → More info

@stale stale bot added the 2.status: stale https://github.com/NixOS/nixpkgs/blob/master/.github/STALE-BOT.md label Apr 26, 2021
@buckley310 buckley310 closed this Oct 5, 2021
@buckley310 buckley310 deleted the swap-tracking branch June 9, 2022 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant