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

Add swap_options to set mount options #41

Closed
wants to merge 1 commit into from

Conversation

iay
Copy link

@iay iay commented Apr 30, 2024

Adds a swap_options variable defaulting to "sw" to preserve the current behaviour. This is used to set the options field in /etc/fstab and also passed to the initial swapon.

The latter means that this change won't work on, for example, Alpine systems with just BusyBox installed, it requires a full-fat version of swapon from util-linux-misc. I can back out that second part, or conditionalise it as swap_swapon_options vs. swap_mount_options if you prefer. As Alpine isn't marked as a supported distribution for the role, though, you may not regard it as a problem.

Resolves #40.

Copy link

This pr has been marked 'stale' due to lack of recent activity. If there is no further activity, the issue will be closed in another 30 days. Thank you for your contribution!

Please read this blog post to see the reasons why I mark issues as stale.

@github-actions github-actions bot added the stale label Aug 30, 2024
Copy link

github-actions bot commented Nov 1, 2024

This pr has been closed due to inactivity. If you feel this is in error, please reopen the issue or file a new issue with the relevant details.

@github-actions github-actions bot closed this Nov 1, 2024
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.

Would like to be able to set mount options
1 participant