From: Michael Tremer Date: Wed, 13 Mar 2019 08:05:27 +0000 (+0000) Subject: installer: Set the clock correctly when installing over network X-Git-Url: http://git.ipfire.org/?p=people%2Fpmueller%2Fipfire-2.x.git;a=commitdiff_plain;h=5ea26096ca2a34bc41af03b40e2332db4d949da1 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 --- diff --git a/src/installer/dracut-module/70-dhcpcd.exe b/src/installer/dracut-module/70-dhcpcd.exe index 660f269410..d801c8adad 100755 --- a/src/installer/dracut-module/70-dhcpcd.exe +++ b/src/installer/dracut-module/70-dhcpcd.exe @@ -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) diff --git a/src/installer/dracut-module/module-setup.sh b/src/installer/dracut-module/module-setup.sh index 103f754e98..ef4b15bdcc 100755 --- a/src/installer/dracut-module/module-setup.sh +++ b/src/installer/dracut-module/module-setup.sh @@ -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