handle rpcbind /run/rpcbind directory

master
Harald Hoyer 2017-06-06 13:38:29 +02:00
parent 3cea065819
commit 1856ae95c8
2 changed files with 5 additions and 2 deletions

View File

@ -70,7 +70,7 @@ install() {
local _i local _i
local _nsslibs local _nsslibs
inst_multiple -o portmap rpcbind rpc.statd mount.nfs \ 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 inst_multiple /etc/services /etc/nsswitch.conf /etc/rpc /etc/protocols /etc/idmapd.conf


if [[ $hostonly_cmdline == "yes" ]]; then if [[ $hostonly_cmdline == "yes" ]]; then

View File

@ -9,7 +9,10 @@ if modprobe sunrpc || strstr "$(cat /proc/filesystems)" rpc_pipefs; then
# Start rpcbind or rpcbind # Start rpcbind or rpcbind
# FIXME occasionally saw 'rpcbind: fork failed: No such device' -- why? # FIXME occasionally saw 'rpcbind: fork failed: No such device' -- why?
command -v portmap >/dev/null && [ -z "$(pidof portmap)" ] && portmap 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 # Start rpc.statd as mount won't let us use locks on a NFSv4
# filesystem without talking to it. NFSv4 does locks internally, # filesystem without talking to it. NFSv4 does locks internally,