diff options
author | Holger Levsen <holger@layer-acht.org> | 2017-01-07 11:15:15 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2017-01-07 11:15:15 +0100 |
commit | d8b35689ceac1c2f3ccfac19447a836b3aeecf7f (patch) | |
tree | b998b5677f759e5d4f69da06090828c930528b00 /bin | |
parent | c7b5f01c93caee6ee06597081aca61a60085ddee (diff) | |
download | jenkins.debian.net-d8b35689ceac1c2f3ccfac19447a836b3aeecf7f.tar.xz |
reproducible Debian: check whether /dev/shm is available
Signed-off-by: Holger Levsen <holger@layer-acht.org>
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/reproducible_maintenance.sh | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bin/reproducible_maintenance.sh b/bin/reproducible_maintenance.sh index e4e09588..58f1df39 100755 --- a/bin/reproducible_maintenance.sh +++ b/bin/reproducible_maintenance.sh @@ -57,6 +57,13 @@ if [ $? -ne 0 ] ; then irc_message debian-reproducible "Proxy is down for $HOSTNAME, please tell the jenkins admins to fix this. (sudo service squid3 restart)" exit 1 fi +# check for /dev/shm being mounted +echo "$(date -u) - testing whether /dev/shm is mounted..." +mount | grep -q "^tmpfs on /dev/shm" +if [ $? -ne 0 ] ; then + irc_message debian-reproducible "/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 +fi echo "$(date -u) - updating the schroots and pbuilder now..." # use host architecture (only) |