-
Notifications
You must be signed in to change notification settings - Fork 170
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
Compatibility with fstab #44
Comments
I gave this a go just now; I'm getting the following error as the connector doesn't accept arguments via
Using this in
|
If we did want to support the use of fstab, we'd need to allow We might use argument delimiter to support |
This is somehow an additional info/request for implementing this feature. I just have setup mount-s3 with systemd automount with a light wrapper script that does the actual mounting. A line in fstab would look like this
where the /usr/local/bin/mount-s3.sh script extracts the source, target, and the double dashed options and calls mount-s3 with it. While this approach works well with autofs it does not with systemd automount since the latter already creates a mount on the target:
Subsequently mount-s3 fails on the actual mounting during triggered by accessing the mount point with: Basically it shall be enough to check the fs type on the mountpoint. If it is autofs it can be ignored. Also I suggest that either we could filter the (comma separated) options passed by -o for those options with double dashes. Or we introduce our own parameter that can hold all our options like so:
This parameter has to be put at the end of the the fstab options so everything following the Alternatively without Also note that the fuse.mount-s3-do wrapper script will not be needed any more. Just a fuse.mount-s3 will do! |
Some users of file connectors may rely on fstab to manage mounting file systems in their Linux operating system.
More info on fstab: https://www.redhat.com/sysadmin/etc-fstab
The text was updated successfully, but these errors were encountered: