diff options
author | Holger Levsen <holger@layer-acht.org> | 2016-05-02 18:46:39 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2016-05-02 18:46:39 +0200 |
commit | de02cf4dd7fcdf3838e1d1fca519a0c1dcb4100e (patch) | |
tree | 4c6b50b6c8aebc1548ff9fb3b1bac1e201d13e9d | |
parent | bce58ea2222e1a2a0a42353cf4ea1e1868776247 (diff) | |
download | jenkins.debian.net-de02cf4dd7fcdf3838e1d1fca519a0c1dcb4100e.tar.xz |
reproducible openwrt/coreboot/archlinux/fedora/netbsd/freebsd: run pb-build4 in the future
-rwxr-xr-x | hosts/profitbricks-build4-amd64/etc/rc.local | 15 | ||||
-rwxr-xr-x | 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 8879125c..7d5bcba9 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 13c4c621..a9c51676 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" ;; *) ;; |