From 612eec4aa737de40cc18ef10722d35a36803816f Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Mon, 18 Jan 2010 19:24:45 +1300 Subject: s4:scripting/devel Allow tmpfs script to be re-run By doing the unmount, we can avoid double-mounting st and bin --- source4/scripting/devel/tmpfs.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'source4/scripting/devel/tmpfs.sh') 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 -- cgit