[Qa-jenkins-scm] [jenkins.debian.net] 01/06: reproducible openwrt/coreboot/archlinux/fedora/netbsd/freebsd: run pb-build4 in the future
Holger Levsen
holger at layer-acht.org
Mon May 2 23:40:21 UTC 2016
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 de02cf4dd7fcdf3838e1d1fca519a0c1dcb4100e
Author: Holger Levsen <holger at layer-acht.org>
Date: Mon May 2 18:46:39 2016 +0200
reproducible openwrt/coreboot/archlinux/fedora/netbsd/freebsd: run pb-build4 in the future
---
hosts/profitbricks-build4-amd64/etc/rc.local | 15 +++++++++++++++
update_jdn.sh | 6 +++---
2 files changed, 18 insertions(+), 3 deletions(-)
diff --git a/hosts/profitbricks-build4-amd64/etc/rc.local b/hosts/profitbricks-build4-amd64/etc/rc.local
index 8879125..7d5bcba 100755
--- a/hosts/profitbricks-build4-amd64/etc/rc.local
+++ b/hosts/profitbricks-build4-amd64/etc/rc.local
@@ -20,4 +20,19 @@ cd /srv/workspace/varlibschroot || exit 1
mkdir -p mount session union unpack
mkdir -p union/overlay union/underlay
+# disable systemd date services (and don't fail if systemd ain't running)
+systemctl disable systemd-timesyncd
+systemctl disable systemd-timedated
+systemctl stop systemd-timesyncd || true
+systemctl stop systemd-timedated || true
+# set correct date
+ntpdate -b de.pool.ntp.org
+# set fake date
+date --set="+398 days +6 hours + 23 minutes"
+# disable check for outdated packages as in the future (like this)
+# packages from security.d.o will appear outdated always…
+ln -sf /bin/true /usr/local/bin/dsa-check-packages
+# finally report success
+echo "$(date -u) - system is running in the future now" | mail -s "$(hostname -f) in the future" root
+
exit 0
diff --git a/update_jdn.sh b/update_jdn.sh
index 13c4c62..a9c5167 100755
--- a/update_jdn.sh
+++ b/update_jdn.sh
@@ -36,7 +36,7 @@ explain "$(date) - begin deployment update."
# run update at current date
case $HOSTNAME in
- profitbricks-build5-amd64|profitbricks-build6-i386)
+ profitbricks-build4-amd64|profitbricks-build5-amd64|profitbricks-build6-i386)
# set correct date (if ntpdate is installed)
[ ! -f /usr/sbin/ntpdate ] || sudo ntpdate -b de.pool.ntp.org
;;
@@ -210,7 +210,7 @@ if [ -f /etc/debian_version ] ; then
esac
# needed to run the 2nd reproducible builds nodes in the future...
case $HOSTNAME in
- bpi0|hb0|profitbricks-build5-amd64|profitbricks-build6-i386) DEBS="$DEBS ntpdate" ;;
+ profitbricks-build4-amd64|profitbricks-build5-amd64|profitbricks-build6-i386) DEBS="$DEBS ntpdate" ;;
*) ;;
esac
# needed to run coreboot/openwrt/netbsd/fedora/fdroid jobs
@@ -586,7 +586,7 @@ explain "$(date) - finished deployment."
# set time back to the future
case $HOSTNAME in
- profitbricks-build5-amd64|profitbricks-build6-i386)
+ profitbricks-build4-amd64|profitbricks-build5-amd64|profitbricks-build6-i386)
sudo date --set="+398 days +6 hours + 23 minutes"
;;
*) ;;
--
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