summaryrefslogtreecommitdiff
path: root/source4/scripting/devel/tmpfs.sh
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/devel/tmpfs.sh')
-rwxr-xr-xsource4/scripting/devel/tmpfs.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/scripting/devel/tmpfs.sh b/source4/scripting/devel/tmpfs.sh
index 5604f68dd7..14e9b276c6 100755
--- a/source4/scripting/devel/tmpfs.sh
+++ b/source4/scripting/devel/tmpfs.sh
@@ -3,7 +3,10 @@
# This sets up bin/ and st/ as tmpfs filesystems, which saves a lot of
# time waiting on the disk!
-rm -rf bin st
+sudo echo "About to (re)mount bin and st as tmpfs"
+rm -rf bin st
+sudo umount bin > /dev/null 2>&1
+sudo umount st > /dev/null 2>&1
mkdir -p bin st || exit 1
sudo mount -t tmpfs /dev/null bin || exit 1
sudo chown $USER bin || exit 1