Re: update grub2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/19/2014 08:42 AM, Michael Schwendt wrote:
On Mon, 19 May 2014 08:08:54 +1000, Stephen Morris wrote:

      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.
Can't confirm.

These are the steps I've tested with on Fedora 20:

1) In /etc/default/grub I've set

   GRUB_DISABLE_SUBMENU=false

2) I've run  "grub2-mkconfig -o /boot/grub2/grub.cfg"  to create the
   grub.cfg with submenus.

3) I've saved grub.cfg as ~/grub.cfg.MKCONFIG

4) I've run  "yum --enablerepo=rawhide install kernel"  to add the kernel
   package from Rawhide.

5) I've run  "diff -u ~/grub.cfg.MKCONFIG /boot/grub2/grub.cfg"  to display
   the differences.

What has changed in grub.cfg?

  * a new "menuentry" block for the new kernel at the top
  * removed trailing whitespace at the end of "linux" lines
  * replaced double-quote characters with single-quotes in menuentry blocks

Upon  "yum history undo …"  only the added menuentry block was removed
again.
Looks like grubby has changed since the last time I used it, it is now creating sub-entries as well. I'll need to now check if I still get the same problem on kernel updates where grubby fails with an authorization failure even though the update process is run under sudo, but when I run grubby manually under sudo it runs fine.

regards,
Steve

begin:vcard
fn:Stephen Morris
n:Morris;Stephen
email;internet:samorris@xxxxxxxxxxxxxxx
x-mozilla-html:TRUE
version:2.1
end:vcard

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux