From: Harald Hoyer Date: Thu, 23 Jul 2009 16:27:33 +0000 (+0200) Subject: nfsroot-cleanup: don't try to read from nonexistant /tmp/nfs.rpc_pipefs_path X-Git-Tag: 0.7~17 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6c4b24afb0c7e91cc89d0e2507d1e53a3e12d7b8;p=thirdparty%2Fdracut.git nfsroot-cleanup: don't try to read from nonexistant /tmp/nfs.rpc_pipefs_path --- diff --git a/modules.d/95nfs/nfsroot-cleanup.sh b/modules.d/95nfs/nfsroot-cleanup.sh index b801d8c4b..02a99a679 100644 --- a/modules.d/95nfs/nfsroot-cleanup.sh +++ b/modules.d/95nfs/nfsroot-cleanup.sh @@ -1,5 +1,4 @@ -rpcpipefspath=`cat /tmp/nfs.rpc_pipefs_path` - +[ -f /tmp/nfs.rpc_pipefs_path ] && rpcpipefspath=`cat /tmp/nfs.rpc_pipefs_path` [ -z "$rpcpipefspath" ] && rpcpipefspath=var/lib/nfs/rpc_pipefs pid=$(pidof rpc.statd)