]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
nfs/nfsroot-cleanup.sh: silently try to umount rpc_pipefs
authorHarald Hoyer <harald@redhat.com>
Tue, 10 Sep 2013 08:50:23 +0000 (10:50 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 10 Sep 2013 08:50:23 +0000 (10:50 +0200)
modules.d/95nfs/nfsroot-cleanup.sh

index 586749c27df3e63eb89df7166d225169847836bd..624c7a7a4f79d47b47973c55510342cd189f7460 100755 (executable)
@@ -24,9 +24,9 @@ if incol2 /proc/mounts /var/lib/nfs/rpc_pipefs; then
     if [ -d $NEWROOT/$rpcpipefspath ]; then
         # mount --move does not seem to work???
         mount --bind /var/lib/nfs/rpc_pipefs $NEWROOT/$rpcpipefspath
-        umount /var/lib/nfs/rpc_pipefs
+        umount /var/lib/nfs/rpc_pipefs 2>/dev/null
     else
-        umount /var/lib/nfs/rpc_pipefs
+        umount /var/lib/nfs/rpc_pipefs 2>/dev/null
     fi
 fi