From c7192121485ae82f2e9de8d6c57f4ef992dc7098 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20=C5=A0urda?= Date: Tue, 20 Sep 2022 19:59:02 +0800 Subject: [PATCH] Set time before downloading images --- embed.ipxe | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/embed.ipxe b/embed.ipxe index b96f1e2..8d91359 100644 --- a/embed.ipxe +++ b/embed.ipxe @@ -190,6 +190,9 @@ goto static_ip_boot_setup :boot_all +# Get accurate time so we can set the clock in kernel boot cmdline +ntp pool.ntp.org || goto error_handler + # We use HTTP because IPXE's HTTPS implementation is lacking. So we delegate # integrity and validation to imgverify. @@ -216,9 +219,6 @@ kernel https://images2.sysdeploy.org/${ubuntu-variant}/${arch-info}/boot-kernel imgverify --signer images.sysdeploy.org boot-kernel https://images2.sysdeploy.org/${ubuntu-variant}/${arch-info}/boot-kernel.sig || goto error_handler -# Get accurate time so we can set the clock in kernel boot cmdline -ntp pool.ntp.org || goto error_handler - echo ip-info ${ip-info} sleep 1