installer: Set the clock correctly when installing over network

If a system has a not very up to date clock, downloading files
over HTTPS is impossible.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
Michael Tremer
2019-03-13 08:05:27 +00:00
parent 9deeda77b6
commit 5ea26096ca
2 changed files with 4 additions and 1 deletions

View File

@@ -46,6 +46,9 @@ case "${reason}" in
# Create system configuration files
make_resolvconf
# Set time
ntpdate "ntp.ipfire.org"
;;
EXPIRE|FAIL|IPV4LL|NAK|NOCARRIER|RELEASE|STOP)

View File

@@ -50,7 +50,7 @@ install() {
inst_libdir_file "libnss_dns.so.*"
# Misc. tools
inst_multiple chmod cut grep eject id killall md5sum touch
inst_multiple chmod cut grep eject id killall md5sum ntpdate touch
inst_multiple -o fdisk cfdisk df ps top
# Hardware IDs