Skip to content

Fix one-time boot for grouped images - #114

Open
hcaldicott wants to merge 1 commit into
garybowers:mainfrom
hcaldicott:agent/fix-one-time-next-boot
Open

Fix one-time boot for grouped images#114
hcaldicott wants to merge 1 commit into
garybowers:mainfrom
hcaldicott:agent/fix-one-time-next-boot

Conversation

@hcaldicott

Copy link
Copy Markdown

Summary

  • bypass the interactive menu when a valid enabled one-time boot image is set
  • retain the normal menu fallback when the requested image is missing or disabled
  • add regression coverage for grouped next-boot images and the fallback path

Why

Grouped images are rendered as labels inside their group submenu, but the existing implementation selects the one-time image label as the default on the top-level menu. Since that label is not present at the top level, iPXE selects a different valid top-level entry instead of booting the requested image.

Jumping directly to the image's boot section makes one-time boot deterministic and avoids requiring menu interaction, which is especially important for unattended provisioning.

Fixes #113

Validation

  • go test ./...
  • validated with a grouped AlmaLinux kernel-boot image on a physical UEFI PXE client
  • confirmed the patched menu immediately requested the configured image's kernel and initrd

@hcaldicott
hcaldicott marked this pull request as ready for review August 11, 2026 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

One-time next boot selects the wrong item when the image is grouped

1 participant