Adding NTP time syncing before install.

Should resolve "SSL certificate problem: certificate not yet valid" issue caused by hardware clock not being correct.  I have tested the logic against the bootable ISO, but have not attempted to rebuild the ISO and install using this code.

The commands are taken from the Arch installation guide.
This commit is contained in:
pants4hire 2022-05-17 02:45:04 -05:00 committed by GitHub
parent 34c03d55d1
commit b5be7c2f7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,6 +16,16 @@ else
exit
fi
# Update system time
if [ $(timedatectl status | grep -c "NTP service: active") -ne 1 ]; then
# If NTP is not active, enable it.
timedatectl set-ntp true
# Update the hardware clock.
hwclock --systohc
fi
if [[ "${CPU_VENDOR}" == "AuthenticAMD" ]]; then
UCODE_INSTALL_MSG="AMD CPU detected, installing AMD ucode..."
UCODE_INSTALL="amd-ucode"