mirror of
https://github.com/bhaiest/holoiso.git
synced 2024-11-15 15:52:33 +01:00
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:
parent
34c03d55d1
commit
b5be7c2f7c
@ -16,6 +16,16 @@ else
|
|||||||
exit
|
exit
|
||||||
fi
|
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
|
if [[ "${CPU_VENDOR}" == "AuthenticAMD" ]]; then
|
||||||
UCODE_INSTALL_MSG="AMD CPU detected, installing AMD ucode..."
|
UCODE_INSTALL_MSG="AMD CPU detected, installing AMD ucode..."
|
||||||
UCODE_INSTALL="amd-ucode"
|
UCODE_INSTALL="amd-ucode"
|
||||||
|
Loading…
Reference in New Issue
Block a user