[Qa-jenkins-scm] [jenkins.debian.net] 01/02: Fix check for /dev/shm and /run/shm, check both

Holger Levsen holger at layer-acht.org
Fri Jan 13 14:07:49 UTC 2017


This is an automated email from the git hooks/post-receive script.

holger pushed a commit to branch master
in repository jenkins.debian.net.

commit 3da1a4e2fce52fd647c4a583394ee3c72b950b77
Author: Ximin Luo <infinity0 at debian.org>
Date:   Fri Jan 13 15:00:31 2017 +0100

    Fix check for /dev/shm and /run/shm, check both
---
 bin/reproducible_maintenance.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh
index ad014f2..afbb3d8 100755
--- a/bin/reproducible_maintenance.sh
+++ b/bin/reproducible_maintenance.sh
@@ -62,8 +62,9 @@ if [ $? -ne 0 ] ; then
 	exit 1
 fi
 # check for /(run|dev)/shm being mounted
-echo "$(date -u) - testing whether /(run|dev)/shm is mounted..."
-mount | egrep -q "^tmpfs on /(run|dev)/shm"
+echo "$(date -u) - testing whether /(run|dev)/shm is mounted correctly..."
+mount | egrep -q "^tmpfs on /dev/shm" && test "$(stat -c %a -L /dev/shm)" = 1777
+mount | egrep -q "^tmpfs on /run/shm" && test "$(stat -c %a -L /run/shm)" = 1777
 if [ $? -ne 0 ] ; then
 	irc_message debian-reproducible "/(run|dev)/shm is not mounted correctly on $HOSTNAME, please tell the jenkins admins to fix this. (by adding 'none /dev/shm tmpfs rw,nosuid,nodev,noexec 0 0' to /etc/fstab"
 	exit 1

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/qa/jenkins.debian.net.git



More information about the Qa-jenkins-scm mailing list