Bug 808821

Summary: Installation of new kernel via yum ignores GRUB_DEFAULT entry in /etc/default/grub
Product: [Fedora] Fedora Reporter: Elbin Pallimalil <elbin.p>
Component: grubbyAssignee: Peter Jones <pjones>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: bcl, gansalmon, itamar, jonathan, kernel-maint, madhu.chinakonda, mads, pjones
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 820454 (view as bug list) Environment:
Last Closed: 2012-04-09 02:58:43 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
/etc/default/grub
none
/boot/grub2/grub.cfg (before)
none
/boot/grub2/grub.cfg (after) none

Description Elbin Pallimalil 2012-04-01 08:42:53 UTC
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:

Comment 1 Elbin Pallimalil 2012-04-01 08:47:16 UTC
Created attachment 574294 [details]
/etc/default/grub

Comment 2 Elbin Pallimalil 2012-04-09 02:58:43 UTC

*** This bug has been marked as a duplicate of bug 742720 ***

Comment 3 Mads Kiilerich 2012-04-17 10:15:46 UTC
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.

Comment 4 Elbin Pallimalil 2012-04-17 18:53:16 UTC
Created attachment 578125 [details]
/boot/grub2/grub.cfg (before)

Before adding a new kernel

Comment 5 Elbin Pallimalil 2012-04-17 18:54:23 UTC
Created attachment 578130 [details]
/boot/grub2/grub.cfg (after)

Comment 6 Elbin Pallimalil 2012-04-17 18:56:26 UTC
Added before and after grub.cfg so that you can verify.

Comment 7 Mads Kiilerich 2012-05-10 01:01:19 UTC
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.