]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
handle rpcbind /run/rpcbind directory
authorHarald Hoyer <harald@redhat.com>
Tue, 6 Jun 2017 11:38:29 +0000 (13:38 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 6 Jun 2017 11:38:29 +0000 (13:38 +0200)
modules.d/95nfs/module-setup.sh
modules.d/95nfs/nfs-start-rpc.sh

index 307734407be8aa3c1947ed56bd78bbfa78de2be5..31d90d427ad5dfb0067d9e663b05146bcc3ac17b 100755 (executable)
@@ -70,7 +70,7 @@ install() {
     local _i
     local _nsslibs
     inst_multiple -o portmap rpcbind rpc.statd mount.nfs \
-        mount.nfs4 umount rpc.idmapd sed /etc/netconfig chmod
+        mount.nfs4 umount rpc.idmapd sed /etc/netconfig chmod "$tmpfilesdir/rpcbind.conf"
     inst_multiple /etc/services /etc/nsswitch.conf /etc/rpc /etc/protocols /etc/idmapd.conf
 
     if [[ $hostonly_cmdline == "yes" ]]; then
index 19bb0f6d17f33cdb9664f898537b4d46335d3c2e..694e05e22735b6cbb40f3a00608dbc1bdc8414ce 100755 (executable)
@@ -9,7 +9,10 @@ if modprobe sunrpc || strstr "$(cat /proc/filesystems)" rpc_pipefs; then
     # Start rpcbind or rpcbind
     # FIXME occasionally saw 'rpcbind: fork failed: No such device' -- why?
     command -v portmap >/dev/null && [ -z "$(pidof portmap)" ] && portmap
-    command -v rpcbind >/dev/null && [ -z "$(pidof rpcbind)" ] && rpcbind
+    if command -v rpcbind >/dev/null && [ -z "$(pidof rpcbind)" ]; then
+        mkdir -p /run/rpcbind
+        rpcbind
+    fi
 
     # Start rpc.statd as mount won't let us use locks on a NFSv4
     # filesystem without talking to it. NFSv4 does locks internally,