From dacfe978e042e5353d223a0c13025a2aae73d2b6 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Mon, 28 Mar 2016 12:40:25 -0400 Subject: reproducible debian: make install script fail if /srv/workspace is not setup as it should on i386 nodes… MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- update_jdn.sh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/update_jdn.sh b/update_jdn.sh index 841f589c..9f9b396e 100755 --- a/update_jdn.sh +++ b/update_jdn.sh @@ -106,7 +106,13 @@ case $HOSTNAME in *) ;; esac case $HOSTNAME in - jenkins|profitbricks-build*) + profitbricks-build*i386) + if ! grep -q '/srv/workspace' /etc/fstab; then + echo "Warning: you need to manually create a /srv/workspace partition on i386 nodes, exiting." + exit 1 + fi + ;; + jenkins|profitbricks-build*amd64) if ! grep -q '^tmpfs\s\+/srv/workspace\s' /etc/fstab; then echo "tmpfs /srv/workspace tmpfs defaults,size=${TMPFSSIZE}g 0 0" | sudo tee -a /etc/fstab >/dev/null fi -- cgit v1.2.3-70-g09d2