When a hosts boots and the PXELinux menu is shown, local boot is the default selected entry and the one that will be booted after timeout. This can be changed by changing the “Default PXE global template” setting (e.g. to discovery). In that case, after the timeout, the host nicely starts to discover.
However for as long as the menu is shown, the visually selected entry is still “Default local boot”. That seems confusing.
There seems to be an easy fix by changing the following template and replacing:
DEFAULT <%= global_setting("default_pxe_item_global", "local") %>
Is there any reason why this isn’t used already? E.g. is het likely to cause any compatibility issues? Or would this be reasonably to include by default in the community templates.
Although I did add two questions, whether we need to change the following as well to make it consistent:
Do we need to remove the “MENU DEFAULT” directive in the following included pxelinux_chainload snippet? As this makes it redundant.
That also makes me wonder if it is intentional that pxelinux_default_local_boot boots immediately, without a timeout. This template also includes the snippet ‘pxelinux_chainload’. It looks like that was mistakenly (?) changed by this commit.