From 414349a1679d0f3b49c90732f066ea28dfdda107 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Tue, 20 Jun 2017 19:29:36 +0200 Subject: reproducible Debian: add check for hanging mounts Signed-off-by: Holger Levsen --- bin/reproducible_node_health_check.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'bin/reproducible_node_health_check.sh') diff --git a/bin/reproducible_node_health_check.sh b/bin/reproducible_node_health_check.sh index ea4266dd..2e13f4d7 100755 --- a/bin/reproducible_node_health_check.sh +++ b/bin/reproducible_node_health_check.sh @@ -74,6 +74,16 @@ elif [ "$(readlink /run/shm)" != "/dev/shm" ] ; then show_fstab_and_mounts fi +# +# check for hanging mounts +# +echo "$(date -u) - testing whether running 'mount' takes forever..." +TIMEOUT=$(timeout 15 mount) +if [ $TIMEOUT -ne 0 ] ; then + echo "$(date -u) - running 'mount' takes forever, giving up." + exit 1 +fi + # # check for correct MTU # -- cgit v1.2.3-54-g00ecf