Bug#775542: auto-mount NFS shares on boot

Apollon Oikonomopoulos apoikos at debian.org
Tue Jul 14 14:07:11 BST 2015


Control: merge -1 768006

Hi,

On Tue, 07 Jul 2015 13:35:12 +0200 Jonas Meurer <jonas at freesources.org> 
wrote:
> >> I prepared a patch for nfs-utils 1.2.8-9 that adds a systemd 
> >> drop-in for
> >> nfs-common at 
> >> /lib/systemd/system/nfs-common.service.d/remote-fs-pre.conf.
> >> It places the nfs-common service before the remote-fs-pre target. This
> >> results in the rpc.gssd service beeing started before NFS shares are
> >> mounted during the boot process.
> >> 
> >> The patch is tested on my system and works for me.

Thanks for looking into this. Just a small note: nfs-common.service 
should also specify Wants=remote-fs-pre.target (in addition to
Before=remote-fs-pre.target) to ensure that remote-fs-pre.target will be 
part of the transaction. The After=remote-fs-pre.target in the 
autogenerated mount units alone will not guarantee this. See the 
description of remote-fs-pre.target in systemd.special(7).

Cheers,
Apollon
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20150714/defaae5a/attachment-0002.sig>


More information about the Pkg-systemd-maintainers mailing list