Project

General

Profile

Actions

Bug #32051

closed

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

Added by Andrea Perotti about 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Templates
Target version:
-
Difficulty:
trivial
Triaged:
No
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

Actions #1

Updated by Andrea Perotti about 3 years 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)

Actions #2

Updated by The Foreman Bot about 3 years ago

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

Updated by The Foreman Bot about 3 years ago

  • Fixed in Releases 2.5.0 added
Actions #4

Updated by Anonymous about 3 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF