[GH-ISSUE #978] Arch detection may behave differently based on iPXE image being used #1795

Closed
opened 2026-03-01 18:36:26 +03:00 by kerem · 2 comments
Owner

Originally created by @antonym on GitHub (Aug 30, 2021).
Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/978

With some of the recent changes I've made to refactor the architecture, a scenario popped up where the built-in ${buildarch} variable isn't always reliable and may obscure some menus by default thinking it's running 32-bit when it's actually 64-bit.

From https://ipxe.org/cfg/buildarch:

The build architecture does not necessarily represent the architecture of the machine on which iPXE is running. In particular, a version of iPXE built for i386 may be running on a 64-bit machine.

I have changed the behavior here to hopefully avoid this scenario in the future by leveraging cpuid at the beginning of menu load:

https://github.com/netbootxyz/netboot.xyz/pull/977

Originally created by @antonym on GitHub (Aug 30, 2021). Original GitHub issue: https://github.com/netbootxyz/netboot.xyz/issues/978 With some of the recent changes I've made to refactor the architecture, a scenario popped up where the built-in ${buildarch} variable isn't always reliable and may obscure some menus by default thinking it's running 32-bit when it's actually 64-bit. From https://ipxe.org/cfg/buildarch: > The build architecture does not necessarily represent the architecture of the machine on which iPXE is running. In particular, a version of iPXE built for i386 may be running on a 64-bit machine. I have changed the behavior here to hopefully avoid this scenario in the future by leveraging cpuid at the beginning of menu load: https://github.com/netbootxyz/netboot.xyz/pull/977
kerem 2026-03-01 18:36:26 +03:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@antonym commented on GitHub (Aug 30, 2021):

If you run into this issue, you can turn menus back on by changing the settings for the menu you want here:

https://github.com/netbootxyz/netboot.xyz/blob/development/roles/netbootxyz/templates/menu/boot.cfg.j2#L50

From the iPXE shell:

set menu_linux_i386 0
set menu_linux 1
exit
<!-- gh-comment-id:908547999 --> @antonym commented on GitHub (Aug 30, 2021): If you run into this issue, you can turn menus back on by changing the settings for the menu you want here: https://github.com/netbootxyz/netboot.xyz/blob/development/roles/netbootxyz/templates/menu/boot.cfg.j2#L50 From the iPXE shell: ``` set menu_linux_i386 0 set menu_linux 1 exit ```
Author
Owner

@antonym commented on GitHub (Aug 31, 2021):

Resolved with https://github.com/netbootxyz/netboot.xyz/pull/977

<!-- gh-comment-id:909284340 --> @antonym commented on GitHub (Aug 31, 2021): Resolved with https://github.com/netbootxyz/netboot.xyz/pull/977
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#1795
No description provided.