quattor / aii

Automated Installation Infrastructure
www.quattor.org
Apache License 2.0
7 stars 16 forks source link

[Fixes issue: 343] Adding capability to set bootloader filename #344

Open MS-Daniel-Matolcsi opened 5 months ago

MS-Daniel-Matolcsi commented 5 months ago

Adding capability to set bootloader filename

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.

jouvin commented 5 months ago

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 commented 5 months ago

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