From 7ed0c6f4fe9f89539cba5632578b104ffc2a4fa6 Mon Sep 17 00:00:00 2001 From: Holger Levsen Date: Fri, 12 Feb 2016 02:06:23 +0100 Subject: reproducible: correctly configure schroot for sessions on tmpfs --- hosts/profitbricks-build3-amd64/etc/rc.local | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hosts/profitbricks-build3-amd64/etc/rc.local b/hosts/profitbricks-build3-amd64/etc/rc.local index aec1060e..8879125c 100755 --- a/hosts/profitbricks-build3-amd64/etc/rc.local +++ b/hosts/profitbricks-build3-amd64/etc/rc.local @@ -14,7 +14,8 @@ echo "$(date -u) - system was rebooted" | mail -s "$(hostname -f) rebooted" root # keep schroot sessions on tmpfs -[ -L /var/lib/schroot ] || echo "$(date -u) - /var/lib/schroot is not a link to /srv/workspace/varlibschroot/ as it should, please fix manually" +[ -L /var/lib/schroot ] || echo "$(date -u) - /var/lib/schroot is not a link (to /srv/workspace/varlibschroot/) as it should, please fix manually" +mkdir -p /srv/workspace/varlibschroot cd /srv/workspace/varlibschroot || exit 1 mkdir -p mount session union unpack mkdir -p union/overlay union/underlay -- cgit v1.2.3-54-g00ecf