]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
nfsroot-cleanup: don't try to read from nonexistant /tmp/nfs.rpc_pipefs_path
authorHarald Hoyer <harald@redhat.com>
Thu, 23 Jul 2009 16:27:33 +0000 (18:27 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 23 Jul 2009 16:27:33 +0000 (18:27 +0200)
modules.d/95nfs/nfsroot-cleanup.sh

index b801d8c4bd96165096912e24246e59a1092ef681..02a99a6791b913728624c6691d9dac3ae4b2d087 100644 (file)
@@ -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)