[GH-ISSUE #1253] Set clock before fetching https assets #369

Open
opened 2026-02-27 14:51:31 +03:00 by kerem · 3 comments
Owner

Originally created by @hcooper on GitHub (May 31, 2023).
Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/1253

I'm working with devices which have no battery and hence loose track of time every reboot.

They expect the clock to be set each boot by ntp/chrony/etc.

This causes a problem using netboot.xyz as https certificate validation fails when fetching images files...

[ Try to run debian live image]
Creating /etc/hosts
Creating /etc/resolv.conf
Begin: Trying wget https://github.com/netboot/debian-squash/......
[...]
curl: (60) SSL certificate problem: certificate is not yet valid
[...]
 BOOT FAILED!

Would it be possible to run ntp/chrony before fetching assets?

I'm happy to try patching it myself - however I've searched around and can't find where to modify this boot process.

Originally created by @hcooper on GitHub (May 31, 2023). Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/1253 I'm working with devices which have no battery and hence loose track of time every reboot. They expect the clock to be set each boot by ntp/chrony/etc. This causes a problem using netboot.xyz as https certificate validation fails when fetching images files... ``` [ Try to run debian live image] Creating /etc/hosts Creating /etc/resolv.conf Begin: Trying wget https://github.com/netboot/debian-squash/...... [...] curl: (60) SSL certificate problem: certificate is not yet valid [...] BOOT FAILED! ``` Would it be possible to run ntp/chrony before fetching assets? I'm happy to try patching it myself - however I've searched around and can't find where to modify this boot process.
Author
Owner

@kaechele commented on GitHub (Jun 8, 2023):

Does passing fixrtc as an option to the kernel fix this? We could look at including it in the cmdline for Debian based distros if that works.

<!-- gh-comment-id:1582508227 --> @kaechele commented on GitHub (Jun 8, 2023): Does passing `fixrtc` as an option to the kernel fix this? We could look at including it in the cmdline for Debian based distros if that works.
Author
Owner

@hcooper commented on GitHub (Jun 8, 2023):

No luck sorry! I set it in netboot.xyz menu and still get the same failure. (Also confirmed pid 1 in the loader is /bin/sh /init vmlinuz fixrtc)

<!-- gh-comment-id:1583434440 --> @hcooper commented on GitHub (Jun 8, 2023): No luck sorry! I set it in netboot.xyz menu and still get the same failure. (Also confirmed pid 1 in the loader is `/bin/sh /init vmlinuz fixrtc`)
Author
Owner

@antonym commented on GitHub (Jun 10, 2023):

iPXE currently run an ntp during the menu process but it doesn't appear to change the underlying clock:

https://ipxe.org/cmd/ntp

<!-- gh-comment-id:1585490274 --> @antonym commented on GitHub (Jun 10, 2023): iPXE currently run an ntp during the menu process but it doesn't appear to change the underlying clock: https://ipxe.org/cmd/ntp
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/netboot.xyz#369
No description provided.