You are not logged in.
Hi all,
I tried gdrivefs from AUR:
https://aur.archlinux.org/packages/gdrivefs/
When I put an the following line into the fstab
/var/cache/gdfs.creds /mnt/gdrivefs gdfs allow_other 0 0
I get this error:
Mär 29 23:39:25 c64 mount[294]: usage: mount.gdfs [-h] [-d] [-o OPT] auth_storage_file mountpoint
Mär 29 23:39:25 c64 mount[294]: mount.gdfs: error: unrecognized arguments: -n
Mär 29 23:39:25 c64 systemd[1]: mnt-gdrive.mount mount process exited, code=exited status=2
Apparently, someone adds a "-n" option to the mount command.
Interestingly, if I add this line after boot to the fstab,
mount /mnt/gdrivefs
works. I reported a bug upstream to add a dummy "-n" option to gdfs. However, the maintainer is wondering who actually adds this "-n" option:
https://github.com/dsoprea/GDriveFS/iss … t-87722639
Any systemd experts around who have a clue about what's going on and/or can hint me to some documentation?
Last edited by knue (2015-03-31 14:56:33)
Offline
systemd does require /etc/mtab to be a symlink to /proc/self/mounts and that is read-only, so passing -n seems to make sense.
Furthermore, the man page mount(8) describes the interface for external helpers as follows:
EXTERNAL HELPERS
The syntax of external mount helpers is:/sbin/mount.suffix spec dir [-sfnv] [-o options] [-t type.sub‐
type]where the suffix is the filesystem type and the -sfnvo options have the
same meaning as the normal mount options. The -t option is used for
filesystems with subtypes support (for example /sbin/mount.fuse -t
fuse.sshfs).The command mount does not pass the mount options unbindable, runbind‐
able, private, rprivate, slave, rslave, shared, rshared, auto, noauto,
comment, x-*, loop, offset and sizelimit to the mount.<suffix> helpers.
All other options are used in a comma-separated list as argument to the
-o option.
Apparently the gdfs helper does not fully implement that interface.
Offline
Yes, that makes sense. Thanks alot.
Offline