On Thu, Aug 25, 2011 at 2:21 PM, Petrus de Calguarium
<pgueckel(a)gmail.com> wrote:
Petrus de Calguarium wrote:
> I have installed F16α and with it grub2 to the MBR of /dev/sda. I am
> experimenting happily with F16, but I am unable to add F15 to the
> grub2 boot menu.
>
> I have edited /etc/grub.d/40_custom and run grub2-mkconfig -o
> /boot/grub2/grub.cfg, but my F15 entry never shows up in the menu,
> even though it is in grub.cfg.
I figured out that no matter what you put into /etc/grub.d/40_custom,
it will never show up in the grub2 menu, even though it does show up
in /boot/grub2/grub.cfg. Yes, I have made sure to run restorecon on
40_custom after editing and that the permissions remain the same as
the other files.
The standard 40_custom is:
#!/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries. Simply type the
# menu entries you want to add after this comment. Be careful not to change
# the 'exec tail' line above.
and it hasn't always worked for me. I prefer to use:
#!/bin/sh
cat <<EOF
menuentry "..." {
set root=
search ...
linux ...
initrd...
}
EOF