Skip to content

Conversation

@MS-Daniel-Matolcsi
Copy link

@MS-Daniel-Matolcsi MS-Daniel-Matolcsi commented Apr 19, 2024

This commit adds the feature to aii-dhcp plugin to fetch bootloader filename for DHCP config to be included. Also handles situation if default bootloader may differ from the one would be used in case of rescue mode.

Resolves #343.

@jouvin
Copy link
Contributor

jouvin commented Apr 19, 2024

I don't think you need AII to configure anything in DHCP. It is currently support by AII to boot in rescue mode (can in fact be anything you have configured) by executing "aii-shellfe --rescue node.name". To work, you need to write a Grub2 config file rescue.cfg file similar to localboot.cfg that will be used by the node when booting. rescue.cfg can be something like (not sure it is a working configuration):


set default=0
set timeout=2
menuentry "Rescue CentOS 7 (x86_64)" {
set root=(pxe)
linuxefi /quattor/rescue-el7_x86_64/vmlinuz ro crashkernel=auto rd.lvm.lv=cl/root rd.lvm.lv=cl/swap rhgb
initrdefi /quattor/rescue-el7_x86_64/initrd.img
}
}

You can also do something similar for legacy BIOS if you need.

Did I miss something in your usecase?

@MS-Daniel-Matolcsi
Copy link
Author

We specifically need to use a different bootloader when using rescue mode. This is an edge case ESXi hypervisors' UEFI booting:

  • normally using VMware's mboot.efi, but it can't do a chainload or boot a LiveCD image
  • hence, in case we have to boot from a Linux LiveCD in case of rescue (eg. due to revise hardware / doing an firmware upgrade), we have to switch to grub-efi eg. That is what covered in my change, if it's given in profile, AII would change 'filename' option in DHCP conf.

@MS-Daniel-Matolcsi MS-Daniel-Matolcsi force-pushed the matolcsi_bootloader_filename branch from 0a507ed to 0459d0d Compare May 24, 2024 12:26
@MS-Daniel-Matolcsi MS-Daniel-Matolcsi force-pushed the matolcsi_bootloader_filename branch from 0459d0d to 2c33e2b Compare July 1, 2024 15:24
@jrha jrha added this to the 25.next milestone Sep 5, 2024
@stdweird
Copy link
Member

@MS-Daniel-Matolcsi is this the same as #357 ?

@stdweird
Copy link
Member

@stdweird
Copy link
Member

#299 also has the filename set option already (and i forgot about it, it's open for soooo long ;)

@jrha jrha force-pushed the matolcsi_bootloader_filename branch from 2c33e2b to b218ef4 Compare January 8, 2026 17:06
@jrha jrha changed the title [Fixes issue: 343] Adding capability to set bootloader filename Add capability to set bootloader filename Jan 8, 2026
@jrha jrha changed the title Add capability to set bootloader filename Add capability to set rescue mode bootloader filename Jan 8, 2026
@jrha jrha force-pushed the matolcsi_bootloader_filename branch 3 times, most recently from dffdedf to 00782a1 Compare January 8, 2026 21:10
…ofile

This commit adds the feature to aii-dhcp plugin to fetch bootloader filename for DHCP config to be included.
Also handles situation if default bootloader may differ from the one would be used in case of rescue mode.
@jrha jrha force-pushed the matolcsi_bootloader_filename branch from 00782a1 to b0ce37c Compare January 8, 2026 21:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Adding capability to set bootloader filename by profile

4 participants