grub2

Patrick Dupre pdupre at gmx.com
Mon May 12 10:39:57 UTC 2014


> Subject: Re: grub2
> 
> Hi,
>  My experience with kernel installs in a grub 2 environment is that 
> I have to always manually run grub2-mkconfig and grub2-install as the 
> kernel install wants to run Gruby to update the grub configuration and 
> on my system, from Fedora 17 onwards, Gruby always fails with 
> authorisation issues even though all O/S updates are run under sudo with 
> full admin access. So my question would be, are you grub issues as a 
> result of the kernel install running Gruby rather than grub2-mkconfig?
> 
> regards,
> Steve
> 


Obviously,
During an update of the kernel, there is no run of:
grub2-mkconfig -o /boot/grub2/grub.cfg

When I run it by my self, I get a different file!
Why?

Thank for your help.


> >
> >> ----- Original Message -----
> >> From: Chris Murphy
> >> Sent: 05/05/14 07:35 AM
> >> To: Community support for Fedora users
> >> Subject: Re: grub2
> >>
> >> On May 4, 2014, at 4:33 PM, Patrick Dupre <pdupre at gmx.com> wrote:
> >>
> >>> Hello,
> >>>
> >>> After the installation of a new kernel (typically during an update).
> >>> There is a change of the file /boot/grub2/grub.cfg.
> >>>
> >>> However, the new menuentry created is not correct.
> >>> The new one includes
> >>> linux /vmlinuz-3.14.2-200.fc20.x86_64 root=/dev/mapper/VolGrpSys_DK1-root
> >>> which wrong.
> >>> I can change it manually.
> >>>
> >>> I cannot guess where the information is found!
> >>> the
> >>> set root='lvm/VolGrpSys_DK1-root'
> >>>
> >>> is correct
> >> The first one looks correct, the second one doesn't. Can you either post the entire grub.cfg, or you can also edit an older entry and check what root= it uses. For any rootfs on LVM, I expect root=/dev/mapper/VG-LV. When updating the kernel, it calls grubby, which should just create a new entry based on a previous entry only updating the name of the kernel and initramfs accordingly. I haven't seen it change the root entry.
> >>
> >> The other thing you can do is create a new grub.cfg from scratch by using
> >>
> >> grub2-mkconfig -o /boot/grub2/grub.cfg
> >>
> >> This is the same command the installer used when Fedora was installed.
> >>
> > Thank you for the information.
> > When I run grub2-mkconfig -o /boot/grub2/grub.cfg.test
> > the generated file is correct.
> > I am not able to reproduce manually what happens during the 2 last kernal updates.
> > I will check again after the next update.
> >
> > ===========================================================================
> > Patrick DUPRÉ | | email: pdupre at gmx.com
> > Laboratoire de Physico-Chimie de l'Atmosphère | |
> > Université du Littoral-Côte d'Opale | |
> > Tel. (33)-(0)3 28 23 76 12 | | Fax: 03 28 65 82 44
> > 189A, avenue Maurice Schumann | | 59140 Dunkerque, France
> > ===========================================================================


===========================================================================
 Patrick DUPRÉ                                 | | email: pdupre at gmx.com
 Laboratoire de Physico-Chimie de l'Atmosphère | |
 Université du Littoral-Côte d'Opale           | |
 Tel.  (33)-(0)3 28 23 76 12                   | | Fax: 03 28 65 82 44
 189A, avenue Maurice Schumann                 | | 59140 Dunkerque, France
===========================================================================


More information about the users mailing list