From: Antonio Alvarez Feijoo Date: Wed, 20 Apr 2022 13:33:51 +0000 (+0200) Subject: fix(nfs): give /run/rpcbind ownership to rpc user X-Git-Tag: 057~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d615934311e25146bb37943bf1385a19dfdbd9e8;p=thirdparty%2Fdracut.git fix(nfs): give /run/rpcbind ownership to rpc user Avoid errors when rpcbind tries to write to the /run/rpcbind directory. --- diff --git a/modules.d/95nfs/nfs-start-rpc.sh b/modules.d/95nfs/nfs-start-rpc.sh index fd64ca27d..69fcfd5a3 100755 --- a/modules.d/95nfs/nfs-start-rpc.sh +++ b/modules.d/95nfs/nfs-start-rpc.sh @@ -9,6 +9,7 @@ if modprobe sunrpc || strstr "$(cat /proc/filesystems)" rpc_pipefs; then command -v portmap > /dev/null && [ -z "$(pidof portmap)" ] && portmap if command -v rpcbind > /dev/null && [ -z "$(pidof rpcbind)" ]; then mkdir -p /run/rpcbind + chown rpc:rpc /run/rpcbind rpcbind fi