On 8 July 2016 at 06:03, Stephen Morris <samorris(a)netspace.net.au> wrote:
On 08/07/16 02:07, Edouard Fazenda wrote:
> Hi Earl,
>
> On Fedora 24 it's the same configuration as Fedora 23, you have to edit
> /etc/default/grub file and after run the grub2-mkconfig command to update
> the grub.cfg Configuration file in /boot. Make sure that the symbolic link
> of /etc/sysconfig/grub is still pointing to /etc/default/grub file.
>
> Cheers, Edouard.
>
Hi Earl, just following on from what Edouard said, I have never used
/etc/sysconfig/grub to make grub changes, as until your thread I didn't
know it existed. All the grub documentation I have seen has said to make
changed directly to /etc/default/grub, which is what I have always done.
Like Tom and you have both indicated I have always run
grub2-mkconfig/grub2-install manually because I don't like the format of
the grub menu built by grubby (which is automatically run when a new kernel
is installed as Tom said). Also as I understand it, grubby does not use
/etc/default/grub to build its grub menus.
From what you have shown in your thread it looks like /etc/sysconfig/grub
is linked to the wrong file. It seems to be linked to
/etc/grub.d/00-header, so you may want to re-link it back to
/etc/default/grub. I have checked on my F24 system and /etc/sysconfig/grub
is a link to /etc/default/grub.
regards,
Steve
Thanks for the responses all, I have confirmed that the symbolic link
points to /etc/default/grub
$ ls -la /etc/sysconfig/
total 152
lrwxrwxrwx. 1 root root 17 Jun 11 02:31 grub -> /etc/default/grub
when I use less to read /etc/default/grub, below is what I am seeing;
therefore, the /etc/default/grub file is not the same on this box, I will
whip up a F24 KVM instance and copy the /etc/default/grub file to this box
and I think I should be good.
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub2-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#
### BEGIN /etc/grub.d/00_header ###
set pager=1
if [ -s $prefix/grubenv ]; then
load_env
fi
if [ "${next_entry}" ] ; then
set default="${next_entry}"
set next_entry=
save_env next_entry
set boot_once=true
else
set default="${saved_entry}"
fi
if [ x"${feature_menuentry_id}" = xy ]; then
menuentry_id_option="--id"
else
*/etc/default/grub*
--
Kind Regards
Earl Ramirez