update grub2

Stephen Morris samorris at netspace.net.au
Sun May 18 22:08:54 UTC 2014


On 05/18/2014 11:57 PM, Michael Schwendt wrote:
> On Sun, 18 May 2014 14:57:14 +0200, Patrick Dupre wrote:
>
>> Hello,
>>
>> After an update of teh kernel. the file:
>> /boot/grub2/grub.cfg is updated.
>> However thsi file is not update properly.
> How? In which way is it not updated "properly"?
>
> Prior to installing a new kernel, you could save a copy of grub.cfg,
> install a new kernel package, and then run diff on the old and new
> grub.cfg. What do you get?
>
>> If I run:
>>   grub2-mkconfig -o /boot/grub2/grub.cfg
>> then the file is OK.
> Define "OK".
>
> grub2-mkconfig rewrites grub.cfg from scratch and under consideration
> of template files, such as those in /etc/grub.d, and add-on tools such
> as os-prober.
>
> On the contrary, grubby (as run via the kernel packages) only inserts
> a new boot entry into the existing file. It does not recreate the file
> completely.
Hi Michael,
     My experience with grubby being run after kernel installs, when I 
have been able to get it to run, is that it does recreate the entire 
grub.cfg file. For example, I have been in the situation where the boot 
menu had an entry for the latest kernel followed by an group entry for 
'Advanced Fedora Options' (or something similar) along with the same 
structure for Ubuntu, then after running grubby, the groupings were 
removed and all the entries that were listed in the groups were moved to 
the top level.

regards,
Steve

>
>> Somebody can tell me what is going on?
> You haven't given enough details.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: samorris.vcf
Type: text/x-vcard
Size: 130 bytes
Desc: not available
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20140519/30019e7f/attachment.vcf>


More information about the users mailing list