summaryrefslogtreecommitdiff
path: root/source4/scripting/devel
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-01-18 19:24:45 +1300
committerAndrew Bartlett <abartlet@samba.org>2010-02-25 08:26:09 +1100
commit612eec4aa737de40cc18ef10722d35a36803816f (patch)
tree81290b8a41b8ce1da06ba3fa06c3dc6c4c68237c /source4/scripting/devel
parentfc4c839bc839faadefc3283d2c2bdfc6d5279c9b (diff)
downloadsamba-612eec4aa737de40cc18ef10722d35a36803816f.tar.gz
samba-612eec4aa737de40cc18ef10722d35a36803816f.tar.bz2
samba-612eec4aa737de40cc18ef10722d35a36803816f.zip
s4:scripting/devel Allow tmpfs script to be re-run
By doing the unmount, we can avoid double-mounting st and bin
Diffstat (limited to 'source4/scripting/devel')
-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