Bug 149070 - /etc/sysconfig/kernel ignores default boot option
/etc/sysconfig/kernel ignores default boot option
Product: Fedora
Classification: Fedora
Component: booty (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Peter Jones
David Lawrence
Depends On:
  Show dependency treegraph
Reported: 2005-02-18 10:02 EST by Chris Adams
Modified: 2008-08-02 19:40 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-12-21 22:01:51 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Chris Adams 2005-02-18 10:02:10 EST
When anaconda creates /etc/sysconfig/kernel, it always sets UPDATEDEFAULT=yes. 
This should not be set if the default boot option is not pointing to the kernel
(i.e. when configuring the boot loader another OS, like WinXP, is chosen as

My father dual boots WinXP and Fedora so he can work on Linux/Unix things at
home, but WinXP is his default.  When he updates the kernel, it changes the
default boot option to point at the newly installed kernel, ignoring that WinXP
was the default.
Comment 1 Jeremy Katz 2005-02-20 21:08:01 EST
Actually, grubby should only be changing the default if the default is already
matching (or that was the intent anyway)
Comment 2 Chris Adams 2005-02-20 21:18:39 EST
I don't see anything in grubby or new-kernel-pkg that looks like it checks to
see if the default is a Linux install before changing the default.

That also seems like it would be the wrong place to do the detection.  How can
grubby know the difference between "make this default" and "make this default
only if default is currently Linux"?  If the second mode is what is intended,
the documentation should be updated to reflect it.

This is based on a decision made during install (whether the newly installed
system should be the default in the boot loader); wouldn't it make more sense
for anaconda to store the results of that decision in /etc/sysconfig/kernel
rather than hard-code some behavior in grubby?
Comment 3 Matthew Miller 2006-07-10 16:34:44 EDT
Fedora Core 3 is now maintained by the Fedora Legacy project for security
updates only. If this problem is a security issue, please reopen and
reassign to the Fedora Legacy product. If it is not a security issue and
hasn't been resolved in the current FC5 updates or in the FC6 test
release, reopen and change the version to match.

Thank you!

Note You need to log in before you can comment on or make changes to this bug.