summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_node_health_check.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/bin/reproducible_node_health_check.sh b/bin/reproducible_node_health_check.sh
index 6f6f71ba..9936a0f4 100755
--- a/bin/reproducible_node_health_check.sh
+++ b/bin/reproducible_node_health_check.sh
@@ -38,6 +38,17 @@ show_fstab_and_mounts() {
set -e
#
+# is the filesystem writetable?
+#
+echo "$(date -u) - testing whether /tmp is writable..."
+$TEST=$(mktemp --tmpdir=/tmp rwtest-XXXXXX)
+if [ -z "$TEST" ] ; then
+ echo "Failure to write a file in /tmp, assuming read-only filesystem."
+ exit 1
+fi
+rm $TEST > /dev/null
+
+#
# check for /dev/shm being mounted properly
#
echo "$(date -u) - testing whether /dev/shm is mounted correctly..."