FS#66315 - [archiso] [ipxe] netboot doesn't work on device with inaccurate clock

Attached to Project: Release Engineering
Opened by Maxime de Roucy (akira86) - Sunday, 19 April 2020, 18:55 GMT
Last edited by freswa (frederik) - Thursday, 10 September 2020, 12:56 GMT
Task Type Bug Report
Category Hardware Issues
Status Closed
Assigned To Jelle van der Waa (jelly)
David Runge (dvzrv)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Hello,

I am trying to install archlinux on an old pcengines apu2 with an inaccurate clock (or maybe it doesn't have any… I don't know).

I downloaded https://www.archlinux.org/static/netboot/ipxe.31e77c156b6d.pxe and place it on a local http server (because the apu2 buildin pxe bios doesn't support https).
Then I chainloaded it, but I get the following error:
```
https://ipxe.archlinux.org/releng/netboot/archlinux.ipxe... Permission denied (http://ipxe.org/0216e43c)
```

https://ipxe.org/err/0216e4 mention that:
> This error indicates that an SSL certificate is not valid at the current date and time.

I tried the [ntp command][1] but it isn't build in ipxe.31e77c156b6d.pxe.

I build my own ipxe.pxe from https://aur.archlinux.org/packages/ipxe-netboot with the following patch:
```
diff --git a/PKGBUILD b/PKGBUILD
index 409a41e..2913e0e 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -40,6 +40,7 @@ prepare() {
echo '#define NET_PROTO_IPV6' >> config/local/general.h
echo '#define DOWNLOAD_PROTO_HTTPS' >> config/local/general.h
echo '#define IMAGE_TRUST_CMD' >> config/local/general.h
+ echo '#define NTP_CMD' >> config/local/general.h
}

build() {
diff --git a/arch.ipxe b/arch.ipxe
index af01aae..929ed80 100644
--- a/arch.ipxe
+++ b/arch.ipxe
@@ -1,3 +1,4 @@
#!ipxe
ifconf
-chain https://www.archlinux.org/releng/netboot/archlinux.ipxe || shell
+ntp pool.ntp.org
+chain https://ipxe.archlinux.org/releng/netboot/archlinux.ipxe || shell
```
Basically I added the ntp command and used it (and also use ipxe.archlinux.org instead of www.archlinux.org because of  FS#58470 ).
It works.

Could you apply those modifications in the official image ?

Thank you in advance.

[1] https://ipxe.org/cmd/ntp
This task depends upon

Closed by  freswa (frederik)
Thursday, 10 September 2020, 12:56 GMT
Reason for closing:  Fixed
Additional comments about closing:  https://aur.archlinux.org/cgit/aur.git/c ommit/?h=ipxe-netboot&id=de4d25aee9f 3e4b2845a957cba9085762566543c

Loading...