On Mon, 29 Oct 2018 16:20:06 +0100 Laurent Bigonville <bi...@debian.org> wrote: > Package: rpcbind > Version: 1.2.5-0.1 > Severity: important > > Hi, > > So according to [0], the LSB initscript fails to start rpcbind because > it looks for "stat" command that is not in the path, PATH is > explicitly set to PATH='/sbin:/bin' because it's possible that /usr is > on a NFS share and rpcbind is needed to mount NFS shares... > > An idea what to do here? The initrd is supposed to mount /usr now I > believe, so is it now OK to change the PATH to > "/sbin:/bin:/usr/sbin:/usr/bin"?
How about using ls and grep, which are both in /bin? Something like if [ `ls -dl "$STATEDIR" | grep -cE '^drwxr-xr-x [0-9]+ _rpc root '` -lt 1 ] ; then -- Regards Allan