From 4574000d67240cd434d0ccc8dbfda974468228ae Mon Sep 17 00:00:00 2001 From: Ed Maste Date: Mon, 13 Nov 2017 11:48:10 -0500 Subject: Reproducible FreeBSD: start with the correct time Signed-off-by: Mattia Rizzolo --- bin/reproducible_freebsd.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/reproducible_freebsd.sh b/bin/reproducible_freebsd.sh index 472835e9..c984c5a1 100755 --- a/bin/reproducible_freebsd.sh +++ b/bin/reproducible_freebsd.sh @@ -100,6 +100,8 @@ for FREEBSD_TARGET in ${FREEBSD_TARGETS} ;do RSCP="scp -r freebsd-jenkins.debian.net" TMPBUILDDIR=/usr/src $RSSH 'sudo rm -rf /usr/src ; sudo mkdir /usr/src ; sudo chown jenkins /usr/src' ### this is tmpfs on linux, we should move this to tmpfs on FreeBSD too + # Ensure we start with the correct time on the target + $RSSH 'sudo service ntpd stop ; sudo ntpdate -b pool.ntp.org ; sudo service ntpd start ; sudo service ntpd status ; date -u' TMPDIR=$($RSSH 'TMPDIR=/srv/reproducible-results mktemp -d -t rbuild-freebsd') # used to compare results DATE=$(date -u +'%Y-%m-%d') START=$(date +'%s') -- cgit v1.2.3-54-g00ecf