Re: Yum kernel upgrades don't boot

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

 



On Mon, 20 May 2013 12:46:11 -0400
Bill Davidsen <davidsen@xxxxxxx> wrote:

> Kevin Fenzi wrote:
> > On Sat, 18 May 2013 19:35:23 -0700
> > Joe Zeff <joe@xxxxxxx> wrote:
> >
> >> On 05/18/2013 06:40 PM, Bill Davidsen wrote:
> >>>
> >>>
> >>> So is dropping the kernel command line options a bug, or
> >>> deliberate policy?
> >>
> >> Neither.  When you install a new kernel, the file is rebuilt, using
> >> /etc/default/grub as a template.  If you need to add something
> >> permanently, you need to add it there.
> >
> > It's actually not. ;) Kernel updates don't run grub2-mkconfig, they
> > use grubby which just copies the last existing entry.
> >
> > It should re-use the options from the previous top existing kernel.
> > Did you have those options in that kernel entry?
> >
> The fact that I got three different answers tells me that I'm not
> alone in having some questions in this area.

...snip...

Yep. I agree it's confusing. ;( 

My understanding of it is: 

* grub2-mkconfig is never run automatically. You can run it yourself
  however and it will overwrite your config with a new generated one
  using /etc/default/grub. 

* On kernel updates, kernel packages call /sbin/new-kernel-pkg which in
  turn calls grubby. grubby is called with --copy-default, which should
  copy the arguments from the current default kernel. Additionally,
  grubby/kernel-new-pkg reads /etc/sysconfig/kernel for some options. 

So, for your use you could just regen your config after every kernel
update. Or you could add the options you need to the default kernel or
try and re-run grubby to add the options you need. 

kevin

Attachment: signature.asc
Description: PGP signature

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
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