nfs/nfsroot-cleanup.sh: mount --bind instead of --move
authorHarald Hoyer <harald@redhat.com>
Thu, 29 Nov 2012 15:07:35 +0000 (16:07 +0100)
committerHarald Hoyer <harald@redhat.com>
Fri, 14 Dec 2012 08:04:55 +0000 (09:04 +0100)
modules.d/95nfs/nfsroot-cleanup.sh

index 5610016..586749c 100755 (executable)
@@ -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