summaryrefslogtreecommitdiffstats
path: root/modules.d/95nfs/nfsroot-cleanup.sh
diff options
context:
space:
mode:
Diffstat (limited to 'modules.d/95nfs/nfsroot-cleanup.sh')
-rwxr-xr-xmodules.d/95nfs/nfsroot-cleanup.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules.d/95nfs/nfsroot-cleanup.sh b/modules.d/95nfs/nfsroot-cleanup.sh
index d99519b..3b164de 100755
--- a/modules.d/95nfs/nfsroot-cleanup.sh
+++ b/modules.d/95nfs/nfsroot-cleanup.sh
@@ -16,12 +16,12 @@ pid=$(pidof rpcbind)
if incol2 /proc/mounts /var/lib/nfs/rpc_pipefs; then
# try to create the destination directory
- [ -d "$NEWROOT"/$rpcpipefspath ] \
- || mkdir -m 0755 -p "$NEWROOT"/$rpcpipefspath 2> /dev/null
+ [ -d "$NEWROOT/$rpcpipefspath" ] \
+ || mkdir -m 0755 -p "$NEWROOT/$rpcpipefspath" 2> /dev/null
- if [ -d "$NEWROOT"/$rpcpipefspath ]; then
+ if [ -d "$NEWROOT/$rpcpipefspath" ]; then
# mount --move does not seem to work???
- mount --bind /var/lib/nfs/rpc_pipefs "$NEWROOT"/$rpcpipefspath
+ mount --bind /var/lib/nfs/rpc_pipefs "$NEWROOT/$rpcpipefspath"
umount /var/lib/nfs/rpc_pipefs 2> /dev/null
else
umount /var/lib/nfs/rpc_pipefs 2> /dev/null