Verified Commit 7b7c1db0 authored by Pops Dylan's avatar Pops Dylan Committed by Daniele Debernardi
Browse files

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.
parent 4cc96c57
Pipeline #106214202 passed with stages
in 1 minute and 44 seconds
pkgname=postmarketos-base
pkgver=3
pkgrel=31
pkgrel=32
pkgdesc="Meta package for minimal postmarketOS base"
url="https://postmarketos.org"
arch="noarch"
......
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment