From 5ea26096ca2a34bc41af03b40e2332db4d949da1 Mon Sep 17 00:00:00 2001 From: Michael Tremer Date: Wed, 13 Mar 2019 08:05:27 +0000 Subject: [PATCH] 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 --- src/installer/dracut-module/70-dhcpcd.exe | 3 +++ src/installer/dracut-module/module-setup.sh | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.2