[systemd-devel] Is there a way to override the "Where" option in mount units?

Dennis Jacobfeuerborn dennisml at conversis.de
Tue Oct 31 10:19:45 UTC 2017


Hi,
I'm trying to set up a redundant nfs server but the problem I'm
currently running into is that I need to move the
/var/lib/nfs/rpc_pipefs mountpoint outside of /var/lib/nfs.
The original mountpoint is handled by
/usr/lib/systemd/system/var-lib-nfs-rpc_pipefs.mount which comes as part
of the nfs-utils RPM.
So my initial naive idea was to create a drop-in in /etc/systemd/system
and override the "Where" option but that's when I learned that this
option cannot differ from the mount unit filename.

This creates a dilemma for me since I shouldn't modify the original
mount unit both in principle and because it would mess up things
horribly when updating. Due to the limitations on the mount unit
filename I cannot create a drop-in directory either though so I'm not
sure what the appropriate way to handle this situation is.

The only way I can think of is to disable/mask the original mount unit
and create a completely new one or is there another way to deal with this?

Regards,
  Dennis


More information about the systemd-devel mailing list