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

Please fix regex for fstab hook #816

Merged
merged 1 commit into from
Jan 17, 2025

Conversation

MatthiasPetermann
Copy link
Contributor

@MatthiasPetermann MatthiasPetermann commented Jan 17, 2025

Commit fb71f0d introduced to possibility to add options behind permissions
in fstab. Unfortunately it breaks scenarios where no options are provided
as the current regex expects the comma with the options always to be present.

This patch fixes the regex to handle the options as group.

…sions

in fstab. Unfortunately it breaks scenarios where no options are provided
as the current regex expects the comma with the options always to be present.

This patch fixes the regex to handle the options as group.
@tschettervictor
Copy link
Collaborator

There is already a PR addressing this.

#802

Are you saying you would like to have the option to supply “no options” at all?

@MatthiasPetermann
Copy link
Contributor Author

There is already a PR addressing this.

#802

Are you saying you would like to have the option to supply “no options” at all?

No, I hope I didn’t come across the wrong way. I definitely want to be able to specify the mount permissions (ro, rw, etc.). However, without my patch, the issue is that something like...

MOUNT /etc/global /etc/global nullfs ro 0 0

produces an validation error.

@tschettervictor
Copy link
Collaborator

I see.

We are testing the above PR, which only greps to make sure one of [rw|ro|rq|sw|xx] is included according to fstab documentation.

Can you test that?

@bmac2 bmac2 merged commit fe63412 into BastilleBSD:master Jan 17, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants