On Fri, Jul 5, 2019 at 4:10 AM Mick <michaelkintz...@gmail.com> wrote: > > On Friday, 5 July 2019 08:24:14 BST mad.scientist.at.la...@tutanota.com wrote: > > Thank you! Now I don't have to read all the grub2 manual right away. > > You could create manually a /boot/grub/grub.cfg file, but this is NOT how > GRUB2 was meant to be used. TBH, if you want to do this, then why bother with > GRUB2 in the first place. You could instead install sys-boot/grub-static from > an overlay and use grub legacy by manually configuring its /boot/grub/ > grub.conf file.
The only people who would tell you not to use a manual config would also tell you not to use the old version of grub. There is really no reason to use the old version, except for the fact that the documentation for manual config files on the new one is pretty opaque. The newer version is much more versatile in terms of support for newer filesystems, etc. It just has a preferred mode of operation that basically generates config files that are practically a bootloader in themselves. The old version isn't even in the Gentoo repo, which means that if you do run into problems you'll be using backchannel support. Given that somebody just posted a ready-to-use config file I'd start there. All that said, it probably is worth taking the time to see if you can bend to the tool rather than making the tool bend to you. If you use the standard make install kernel filenames, and edit the grub config files in /etc appropriately, chances are it will generate a nice menu that just works. I used to do it the way you're looking to do it, but find that the tools work pretty well these days and it makes it trivial to maintain a library of old kernel versions which has helped out with the occasional regression. While the autogen config files are a bit complex, they are actually editable and readable. If you skip through all the conditional logic you'll get to the guts of the actual menu options. You can always autogen a config and not send the output to the actual config file if you want to see what it wants to do for reference. -- Rich