Bug 785378

Summary: option "GRUB_DEFAULT=saved" (/etc/default/grub) not honored
Product: [Fedora] Fedora Reporter: nicofo <nicofo>
Component: grub2Assignee: Peter Jones <pjones>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 16CC: chgonzalezg, dennis, elbin.p, mads, pjones
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-04-09 16:00:30 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Description nicofo 2012-01-28 08:11:16 EST
Description of problem:
In /etc/default/grub, I have: 'GRUB_SAVEDEFAULT=true'
As a result in /boot/grub2/grub.cfg I have the line 'set default="${saved_entry}"'.
But after a kernel update (with yum), that line is modified to 'set default="0"'

Version-Release number of selected component (if applicable):
(Fedora 16 up to date)

How reproducible:

Steps to Reproduce:
1. When a kernel update is available, apply the update (this problem has happened several times with previous kernel updates)
Actual results:
In /boot/grub2/grub.cfg, the line:
 set default="${saved_entry}"     is modified to:
 set default="0"

Expected results:
Since 'GRUB_SAVEDEFAULT=true' is present in /etc/default/grub, 'set default="${saved_entry}"' should remain present in /boot/grub2/grub.cfg
Moreover, it is was happened when I regenerate /boot/grub2/grub.cfg with the command:
 grub2-config -o /boot/grub2/grub.cfg

Additional info:
File etc/default/grub:

GRUB_DISTRIBUTOR="$(sed 's, release .*$,,g' /etc/system-release)"
# GRUB_TERMINAL="serial console"
# GRUB_SERIAL_COMMAND="serial --unit=0 --speed=9600"
GRUB_CMDLINE_LINUX="quiet rhgb \# video=SVIDEO-1:d"
Comment 1 nicofo 2012-03-14 17:52:32 EDT
(sorry there is a mistake in the previous comment: I spoke about the option 'GRUB_SAVEDEFAULT=true' while it should be 'GRUB_DEFAULT=saved')

=> summary of the bug: 
'set default=0' is written in grub.cfg instead of 'set default="${saved_entry}"'
despite the fact that "GRUB_DEFAULT=saved" is in /etc/default/grub
Comment 2 Mads Kiilerich 2012-04-09 16:00:30 EDT

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