Bug #5943: grub fails to boot when too many boot environments are present
Related to 5943 (please merge)
This is related to bug 5943 and includes instructions how to reproduce. I'm not seeing a way to add these reproduction instructions to that bug, so I'm creating a new bug post on how to do so.Instructions:
cat menu.lst.bak >> menu.list
Reboot until the issue is experienced. For me, it was when menu.lst was greater than 100K.
It's possible that the menu.lst can become so big that you cannot even boot via grub command-line; forcing a live CD boot to manually cleanup the menu.lst receiving the following error:
grub> bootfs rpool/ROOT/omnios-r151014
Error 28: Selected item cannot fit into memory