From: Harald Hoyer Date: Thu, 29 Nov 2012 15:07:35 +0000 (+0100) Subject: nfs/nfsroot-cleanup.sh: mount --bind instead of --move X-Git-Tag: 025~34 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=2b5cd3dbf82ea2a6b0e5b70078ce0d37efc52d1a;p=thirdparty%2Fdracut.git nfs/nfsroot-cleanup.sh: mount --bind instead of --move --- diff --git a/modules.d/95nfs/nfsroot-cleanup.sh b/modules.d/95nfs/nfsroot-cleanup.sh index 56100166c..586749c27 100755 --- a/modules.d/95nfs/nfsroot-cleanup.sh +++ b/modules.d/95nfs/nfsroot-cleanup.sh @@ -22,7 +22,9 @@ if incol2 /proc/mounts /var/lib/nfs/rpc_pipefs; then mkdir -m 0755 -p $NEWROOT/$rpcpipefspath 2>/dev/null if [ -d $NEWROOT/$rpcpipefspath ]; then - mount --move /var/lib/nfs/rpc_pipefs $NEWROOT/$rpcpipefspath + # mount --move does not seem to work??? + mount --bind /var/lib/nfs/rpc_pipefs $NEWROOT/$rpcpipefspath + umount /var/lib/nfs/rpc_pipefs else umount /var/lib/nfs/rpc_pipefs fi