-
Notifications
You must be signed in to change notification settings - Fork 200
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
lenses/fstab.aug: Allow comma after the last option #838
Conversation
Please squash the commits into one (you'll have to force push to your branch). Also needs a Also remove Also add |
@rwmjones done |
You need to add the |
Also it should be |
ptal |
This looks good now. I also applied it to my local tree and ran the tests and those pass. |
This PR adds a new lens that allows a comma after the last option: /dev/mapper/foo-bar / xfs defaults, 0 0 Fixes: hercules-team#832 Signed-off-by: [email protected]
…-team#838)" A more general fix will follow. This reverts commit 5246ef0. Signed-off-by: Richard W.M. Jones <[email protected]>
Mount allows mount-option fields to be empty (I think it ignores them), but augeas gave an error. Allow this to be parsed, preserving the empty option on write. Example: /dev/mapper/vg00-vartmp /var/tmp xfs rw,,nodev,nosuid,noexec,relatime 0 0 Note this generalises earlier commit 5246ef0 ("lenses/fstab.aug: Allow comma after the last option (hercules-team#838)") since "," appearing at the end of the option list is a special case of this. Fixes: https://issues.redhat.com/browse/RHEL-77279 Fixes: hercules-team#832 Signed-off-by: Richard W.M. Jones <[email protected]>
This PR adds a new lens that allows a comma after the last option:
Fixes: #832
Signed-off-by: [email protected]