]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
fix(nfs): give /run/rpcbind ownership to rpc user
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>
Wed, 20 Apr 2022 13:33:51 +0000 (15:33 +0200)
committerJóhann B. Guðmundsson <johannbg@gmail.com>
Thu, 21 Apr 2022 06:42:27 +0000 (06:42 +0000)
Avoid errors when rpcbind tries to write to the /run/rpcbind directory.

modules.d/95nfs/nfs-start-rpc.sh

index fd64ca27d061713261eec8e7dc1189ec69959bee..69fcfd5a3ec2c8f3cb591e0dab00f67a28200817 100755 (executable)
@@ -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