Ask Your Question
1

System update doesn't update "/boot/grub2/grub.cfg" file

asked 2018-08-10 16:01:10 -0600

gnu699 gravatar image

Hi folks!

Since several months ago i have this kind of problem: after each installation of a new kernel (by dnf command or GNOME Software Updates), the system update doesn't update "/boot/grub2/grub.cfg" file. So, each time i need to recreate the file by hand with "sudo grub2-mkconfig -o /boot/grub2/grub.cfg".

How can i fix it? Where i need to check to have a beginning of a solution?

Thanks very much!

edit retag flag offensive close merge delete

Comments

That simply is the way that is done in Fedora, Red Hat and CentOS. The kernel packages do not run a scriptlet to update the configuration file.

jmt gravatar imagejmt ( 2018-08-11 17:13:08 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-08-14 13:50:20 -0600

villykruse gravatar image

That can happen if the symbolic linke /etc/grub2.cfg is missing or referring to the wrong file name.

It is supposed to be a symbolic link to ../boot/grub2/grub.cfg. If it is missing, create it (as root)

ln -s ../boot/grub2/grub.cfg /etc/grub2.cfg

For UEFI system you would need this symbolic link /etc/grub2-efi.cfg.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2018-08-10 16:01:10 -0600

Seen: 185 times

Last updated: Aug 14