Description of problem: I have the following entry in /etc/default/grub GRUB_DEFAULT="Microsoft Windows XP Professional (on /dev/sda1)" But when a new kernel is installed via yum this new kernel is made the default. Version-Release number of selected component (if applicable): How reproducible: Always Steps to Reproduce: 1. Set GRUB_DEFAULT to some particular kernel or other entry 2. Install another kernel via yum Actual results: The new installed kernel is made the default in Grub Expected results: The default boot option should be what was set in GRUB_DEFAULT Additional info:
Created attachment 574294 [details] /etc/default/grub
*** This bug has been marked as a duplicate of bug 742720 ***
If you say this is a duplicate then so be it. I can imagine other reasons why you could get the behaviour you describe, but without a before-and-after grub.cfg we can't tell.
Created attachment 578125 [details] /boot/grub2/grub.cfg (before) Before adding a new kernel
Created attachment 578130 [details] /boot/grub2/grub.cfg (after)
Added before and after grub.cfg so that you can verify.
Yes, in this case the problem is that whitespace is removed. The 'right' boot entry can thus not be found and grub will pick the first one it finds - which will be the new kernel.