You are not logged in.

#1 2015-03-31 11:35:59

knue
Member
Registered: 2011-10-11
Posts: 25

[SOLVED] Does systemd/arch append -n to a mount during boot?

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

#2 2015-03-31 12:46:56

Raynman
Member
Registered: 2011-10-22
Posts: 1,539

Re: [SOLVED] Does systemd/arch append -n to a mount during boot?

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

#3 2015-03-31 14:52:32

knue
Member
Registered: 2011-10-11
Posts: 25

Re: [SOLVED] Does systemd/arch append -n to a mount during boot?

Yes, that makes sense. Thanks alot.

Offline

Board footer

Powered by FluxBB