main/postmarketos-base: remove initstepslew from chrony configuration (!838)

Comment out the initstepslew line in /etc/chrony/chrony.conf.
initstepslew can delay booting while chrony sets the time. The
makestep 1 -1 line in the configuration also causes chrony to step
the time (whenever the offset is greater than 1s), making
initstepslew redundant.
This commit is contained in:
Pops Dylan 2019-12-26 07:45:16 -08:00 committed by Daniele Debernardi
parent 4cc96c5715
commit 7b7c1db0ff
No known key found for this signature in database
GPG Key ID: 5782FCF5DAE9AF60
2 changed files with 11 additions and 3 deletions

View File

@ -1,6 +1,6 @@
pkgname=postmarketos-base
pkgver=3
pkgrel=31
pkgrel=32
pkgdesc="Meta package for minimal postmarketOS base"
url="https://postmarketos.org"
arch="noarch"

View File

@ -80,8 +80,16 @@ touch /etc/wpa_supplicant/wpa_supplicant.conf
echo "- Modifying: /etc/sudoers"
sed -i 's/# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' /etc/sudoers
# Set chrony to quickly correct system time on first boot, if necessary
# Set chrony to quickly correct system time whenever it differs from
# ntp time by more than 1s.
if ! grep -q "makestep" /etc/chrony/chrony.conf; then
echo "- Modifying: /etc/chrony/chrony.conf"
echo "- Modifying: /etc/chrony/chrony.conf (adding makestep)"
echo "makestep 1 -1" >> /etc/chrony/chrony.conf
fi
# Comment out initstepslew in the chrony configuration to avoid a delay
# during boot.
if grep -q "^initstepslew" /etc/chrony/chrony.conf; then
echo "- Modifying: /etc/chrony/chrony.conf (removing initstepslew)"
sed -i 's/^initstepslew/#initstepslew/' /etc/chrony/chrony.conf
fi