From d615934311e25146bb37943bf1385a19dfdbd9e8 Mon Sep 17 00:00:00 2001 From: Antonio Alvarez Feijoo Date: Wed, 20 Apr 2022 15:33:51 +0200 Subject: [PATCH] fix(nfs): give /run/rpcbind ownership to rpc user Avoid errors when rpcbind tries to write to the /run/rpcbind directory. Reference:https://github.com/dracutdevs/dracut/commit/d615934311e25146bb37943bf1385a19dfdbd9e8 Conflict:NA --- modules.d/95nfs/nfs-start-rpc.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/modules.d/95nfs/nfs-start-rpc.sh b/modules.d/95nfs/nfs-start-rpc.sh index fd64ca27..69fcfd5a 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 -- 2.23.0