[systemd-devel] NFS mount unit

Patrick Donnelly batrick at batbytes.com
Fri Feb 15 12:44:54 PST 2013


I am trying to setup a mount unit file for an NFS mount. I'm using
(with IP address hidden):

# cat host\@.mount
[Unit]
Description=%i mount
DefaultDependencies=no
Requires=local-fs.target network.target rpc-statd.service
Conflicts=umount.target

[Mount]
What=host:/%i
Where=/%i
Type=nfs
Options=user,async,atime,exec,rw,wsize=32768,rsize=32768
DirectoryMode=0755
TimeoutSec=20

[Install]
WantedBy=multi-user.target


When trying to enable the mount unit, I get this error:

# systemctl enable ./host\@mnt.mount
Failed to issue method call: Invalid argument

This error message is unfortunately (and frustratingly) vague. What am
I doing wrong?

[Before someone asks why not use /etc/fstab, I'm planning to add an
openvpn dependency when I get these issues sorted out.]

--
- Patrick Donnelly


More information about the systemd-devel mailing list