summaryrefslogtreecommitdiffstats
path: root/vagrant
diff options
context:
space:
mode:
authorintrigeri <intrigeri@boum.org>2019-07-09 11:46:12 +0000
committerintrigeri <intrigeri@boum.org>2019-10-19 07:12:25 +0000
commit3df6c19c946b28c7c229386faee1918bddbfdf9a (patch)
tree597516597e0d552d1715e4bd986b7d01603c4aa7 /vagrant
parent6c7e91d1b96dedc671c2046ff90049fcc98cb75c (diff)
Adjust to timedatectl's output on Buster.
Diffstat (limited to 'vagrant')
-rwxr-xr-xvagrant/provision/assets/build-tails3
1 files changed, 2 insertions, 1 deletions
diff --git a/vagrant/provision/assets/build-tails b/vagrant/provision/assets/build-tails
index baef54d..225adec 100755
--- a/vagrant/provision/assets/build-tails
+++ b/vagrant/provision/assets/build-tails
@@ -49,7 +49,8 @@ old_build_dirs() {
}
ntp_synchronized() {
- timedatectl status | grep -qs -E '^\s*NTP\s+synchronized:\s+yes$'
+ timedatectl status | grep -qs -E '^\s*NTP\s+service:\s+active$' && \
+ timedatectl status | grep -qs -E '^\s*System\s+clock\s+synchronized:\s+yes$'
}
if [ "${TAILS_BUILD_FAILURE_RESCUE}" != 1 ]; then