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:
parent
4cc96c5715
commit
7b7c1db0ff
@ -1,6 +1,6 @@
|
|||||||
pkgname=postmarketos-base
|
pkgname=postmarketos-base
|
||||||
pkgver=3
|
pkgver=3
|
||||||
pkgrel=31
|
pkgrel=32
|
||||||
pkgdesc="Meta package for minimal postmarketOS base"
|
pkgdesc="Meta package for minimal postmarketOS base"
|
||||||
url="https://postmarketos.org"
|
url="https://postmarketos.org"
|
||||||
arch="noarch"
|
arch="noarch"
|
||||||
|
@ -80,8 +80,16 @@ touch /etc/wpa_supplicant/wpa_supplicant.conf
|
|||||||
echo "- Modifying: /etc/sudoers"
|
echo "- Modifying: /etc/sudoers"
|
||||||
sed -i 's/# %wheel ALL=(ALL) ALL/%wheel ALL=(ALL) ALL/' /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
|
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
|
echo "makestep 1 -1" >> /etc/chrony/chrony.conf
|
||||||
fi
|
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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user