Project

General

Profile

Bug #32051

Wrong exit status in iPXE when booting via PXE prevent UEFI system from booting from local disk

Added by Andrea Perotti 6 months ago. Updated 6 months ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
Difficulty:
trivial
Triaged:
No
Bugzilla link:
Fixed in Releases:
Found in Releases:

Description

UEFI systems that has "PXE, local disk" as boot sequence and load and/or use iPXE to continue the network boot remain stuck in the network step due to wrong exit status in ipxe.

When using iPXE on a UEFI system, in order to completely exit from the iPXE environment you need to use

exit 1

rather than just using:

exit

UEFI does not seems to handle the failure of a boot mode: if it start have to suceed, or will go back to select another boot method.

When using qemu-kvm, with boot order: "pxe, local disk" if iPXE is interrupted with just "exit", it present to the user the UEFI UI, while passing "exit 1" will exit from the network boot and will attempt to boot from local disk.

Repeating the test with a lenovo T450s in uefi only mode, the system goes back to UEFI BOOT device selection screen no matter if exit or exit 1 is used.

Scenarios affected by this bug are:
- boot from local disk when system is unknown and reach to the global default boot page, where use can choose to discover the system or boot from local disks
- after provisioning a system, it reboot but if the boot sequence is still the same, the system will load pxe once again, but this time will not be provided with any kickstart

in both scenarios is important to preserve the same experience as with BIOS in order to streamline UX during provisioning

Associated revisions

Revision 85eb8edf (diff)
Added by Andrea Perotti 6 months ago

Fixes #32051 - Change exit status in iPXE templates (#8373)

iPXE in UEFI env need exit with status code to attempt boot from other
device, i.e. netboot -> local disk

ref: https://forum.ipxe.org/showthread.php?tid=10327&pid=16696#pid16696

History

#1 Updated by Andrea Perotti 6 months ago

reference:
https://forum.ipxe.org/showthread.php?tid=10327&pid=16696#pid16696

Tested with ipxe 1.21.1+ (downloaded official build from upstream site)

#2 Updated by The Foreman Bot 6 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman/pull/8373 added

#3 Updated by The Foreman Bot 6 months ago

  • Fixed in Releases 2.5.0 added

#4 Updated by Anonymous 6 months ago

  • Status changed from Ready For Testing to Closed

Also available in: Atom PDF