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 /hosts/profitbricks-build4-amd64/etc | |
parent | bce58ea2222e1a2a0a42353cf4ea1e1868776247 (diff) | |
download | jenkins.debian.net-de02cf4dd7fcdf3838e1d1fca519a0c1dcb4100e.tar.xz |
reproducible openwrt/coreboot/archlinux/fedora/netbsd/freebsd: run pb-build4 in the future
Diffstat (limited to 'hosts/profitbricks-build4-amd64/etc')
-rwxr-xr-x | hosts/profitbricks-build4-amd64/etc/rc.local | 15 |
1 files changed, 15 insertions, 0 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 |