On Thu, May 21, 2015 at 4:33 AM, Neil Bothwick <[email protected]> wrote: > That's a GRUB1 file, GRUB2 uses a different syntax so your first entry > would become > > menuentry "Gentoo Linux 3.18.12" { > linux /boot/kernel-x86_64-3.18.12-gentoo root=/dev/md5 net.ifnames=0 irqpoll > }
Correct. > > Also, you need to copy 40_custom and then add your lines to that. This is > because files in /etc/grub.d are executed, so it needs to be a shell > script. > If you're just going to hand-edit your config file, I don't see much point in sticking this stuff in /etc/grub.d. Just hand-edit your config file and forget about grub2-mkconfig. 40_custom is more about adding one more entry to an auto-generated menu, such as having an entry for booting another OS, or a rescue CD image, or whatever. -- Rich

