Add the enable-preset-menu configuration to the grub ebuild. If /boot/grub/grub.conf.preset is present embed it as preset menu for fallback. Reproducible: Always Steps to Reproduce: 1. Kill boot partition, disk, or alike 2. Reboot machine remotely Actual Results: No serial console access to grub / no fallback booting I'd very much like to have a robust and accessible grub on my remote machines. If there is something wrong with the disk, partitioning, etc. grub should start with custom defaults. Possible options would include fallback to: netbooting, enabling serial, boot from 2nd disk in soft-raid, etc. This is possible by embedding a preset menu as fallback, the attached patch adds /boot/grub/grub.conf.preset if present.
Created attachment 118492 [details, diff] grub-0.97-r3-presetmenu.patch proposed enhancement
that requires src_* functions accessing $ROOT which it shouldnt be doing (think building on one machine and deploying on another) you can do this instead: EXTRA_CONF="--enable-preset-menu=/boot/grub/grub.conf.preset" emerge grub
Ok, thanks. Maybe gentoo will integrate a nice distro preset via portage files someday? Note: actually it's EXTRA_ECONF="--enable-preset-menu=/boot/grub/grub.conf.preset" emerge grub
i dont quite follow ... what sort of presets would we put in there ?
E.g. with the 'serial' use flag (like memtest86) this preset would be nice: serial --unit=0 --speed=9600 terminal --timeout=5 console serial Of course this is just an example. As with boot splash there is no 'standard', it up to the distro to come up with something useful to the user base.