From 6352825b8c7596ff09a3f84cff231999aca23ba6 Mon Sep 17 00:00:00 2001 From: Steve Langasek Date: Sun, 11 Aug 2013 05:18:25 +0200 Subject: [PATCH] Migrate the rpc_pipefs mount out of /var/lib to /run, to better support /var on NFS. --- debian/changelog | 4 ++++ debian/idmapd.conf | 2 +- debian/nfs-common.dirs | 1 - debian/nfs-common.init | 3 ++- debian/nfs-common.postinst | 1 - debian/rules | 4 +++- 6 files changed, 10 insertions(+), 5 deletions(-) diff --git a/debian/changelog b/debian/changelog index 5168245..25c00f3 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,10 @@ nfs-utils (1:1.2.8-5) UNRELEASED; urgency=low * Remove Luk Claes from uploaders (Closes: #723602) + [ Steve Langasek ] + * Migrate the rpc_pipefs mount out of /var/lib to /run, to better + support /var on NFS. + -- Ben Hutchings Mon, 23 Sep 2013 03:59:19 +0100 nfs-utils (1:1.2.8-4) unstable; urgency=low diff --git a/debian/idmapd.conf b/debian/idmapd.conf index 2df5054..af5c233 100644 --- a/debian/idmapd.conf +++ b/debian/idmapd.conf @@ -1,7 +1,7 @@ [General] Verbosity = 0 -Pipefs-Directory = /var/lib/nfs/rpc_pipefs +Pipefs-Directory = /run/rpc_pipefs # set your own domain here, if id differs from FQDN minus hostname # Domain = localdomain diff --git a/debian/nfs-common.dirs b/debian/nfs-common.dirs index 84dcd32..50ecd73 100644 --- a/debian/nfs-common.dirs +++ b/debian/nfs-common.dirs @@ -4,7 +4,6 @@ usr/sbin var/lib/nfs var/lib/nfs/sm var/lib/nfs/sm.bak -var/lib/nfs/rpc_pipefs usr/share/nfs-common/conffiles usr/share/bug/nfs-common usr/share/bug/nfs-utils diff --git a/debian/nfs-common.init b/debian/nfs-common.init index a0eab38..92691f9 100644 --- a/debian/nfs-common.init +++ b/debian/nfs-common.init @@ -20,7 +20,7 @@ DEFAULTFILE=/etc/default/nfs-common NEED_STATD= NEED_IDMAPD= NEED_GSSD= -PIPEFS_MOUNTPOINT=/var/lib/nfs/rpc_pipefs +PIPEFS_MOUNTPOINT=/run/rpc_pipefs RPCGSSDOPTS= if [ -f $DEFAULTFILE ]; then . $DEFAULTFILE @@ -172,6 +172,7 @@ case "$1" in do_modprobe sunrpc do_modprobe nfs do_modprobe nfsd + mkdir -p "$PIPEFS_MOUNTPOINT" if do_mount rpc_pipefs $PIPEFS_MOUNTPOINT then if [ "$NEED_IDMAPD" = yes ] diff --git a/debian/nfs-common.postinst b/debian/nfs-common.postinst index 8789183..866c066 100644 --- a/debian/nfs-common.postinst +++ b/debian/nfs-common.postinst @@ -26,7 +26,6 @@ case "$1" in chown statd: /var/lib/nfs/sm \ /var/lib/nfs/sm.bak \ - /var/lib/nfs/rpc_pipefs \ /var/lib/nfs if [ -f /var/lib/nfs/state ]; then chown statd /var/lib/nfs/state diff --git a/debian/rules b/debian/rules index 757468e..204ac7a 100755 --- a/debian/rules +++ b/debian/rules @@ -2,7 +2,9 @@ # Parsing of DEB_BUILD_OPTIONS flags. # Note that nostrip is handled automatically by debhelper. -CFLAGS := -g -Wall +CFLAGS := -g -Wall -DPIPEFS_DIR=\\\"/run/rpc_pipefs\\\" \ + -DGSSD_PIPEFS_DIR=\\\"/run/rpc_pipefs\\\" + ifneq (,$(filter noopt,$(DEB_BUILD_OPTIONS))) CFLAGS += -O0 else -- 2.39.2