]> git.decadent.org.uk Git - nfs-utils.git/blob - debian/patches/26-systemd-server-before-client.patch
Merge branch 'sid'
[nfs-utils.git] / debian / patches / 26-systemd-server-before-client.patch
1 From d8c1fcce6d06aa062315a47134e8e3b364cb0700 Mon Sep 17 00:00:00 2001
2 From: Martin Pitt <martin.pitt@ubuntu.com>
3 Date: Tue, 3 Mar 2015 10:45:38 +0100
4 Subject: [PATCH] systemd: Order NFS server before client
5
6 This makes mounting NFS shares from localhost work reliably, as you need to
7 start the server before attempting (client) mounts, and conversely on shutdown
8 need to unmount all shares before stopping the server to avoid hangs.
9 ---
10  systemd/nfs-server.service | 3 +++
11  1 file changed, 3 insertions(+)
12
13 Forwarded: http://www.spinics.net/lists/linux-nfs/msg49934.html
14
15 Index: nfs-utils-1.2.8/systemd/nfs-server.service
16 ===================================================================
17 --- nfs-utils-1.2.8.orig/systemd/nfs-server.service
18 +++ nfs-utils-1.2.8/systemd/nfs-server.service
19 @@ -15,6 +15,9 @@ Before= rpc-statd-notify.service
20  Wants=auth-rpcgss-module.service
21  After=rpc-gssd.service gssproxy.service rpc-svcgssd.service
22  
23 +# start/stop server before/after client
24 +Before=remote-fs-pre.target
25 +
26  Wants=nfs-config.service
27  After=nfs-config.service
28