Bug 149811 - kernel update on SMP sets grub default back to UP kernel
kernel update on SMP sets grub default back to UP kernel
Product: Fedora
Classification: Fedora
Component: mkinitrd (Show other bugs)
i686 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeremy Katz
Depends On:
  Show dependency treegraph
Reported: 2005-02-27 11:07 EST by gene c
Modified: 2014-01-21 17:51 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-06-20 18:03:22 EDT
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 gene c 2005-02-27 11:07:39 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8b2)
Gecko/20050219 Firefox/1.0+

Description of problem:
SMP machine has both SMP and UP kernels. Grub Default is to boot the
SMP kernel. After yum update kernel to a newer kernel the default is
changed back to the UP kernel. 

This may be related to the order in grub.conf - which sems to be UP
followed by SMP - and default=1 is changed back to default=0 which nw
points to non-smp kernel after a kernel update.

Relevant bits of grub.conf (after I hand edited default=0 back to 1):

title Fedora Core (2.6.10-1.766_FC3)
    kernel /boot/vmlinuz-2.6.10-1.766_FC3 ro root=LABEL=/ rhgb quiet
title Fedora Core (2.6.10-1.766_FC3smp)
     kernel /boot/vmlinuz-2.6.10-1.766_FC3smp ro root=LABEL=/ rhgb quiet

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. yum update kernel

Actual Results:  default kernel se back to UP

Expected Results:  default kernel should remain SMP

Additional info:
Comment 1 Jeremy Katz 2005-02-27 12:14:23 EST
What are the contents of /etc/sysconfig/kernel?
Comment 2 gene c 2005-02-27 13:49:27 EST
# cat /etc/sysconfig/kernel
cat: /etc/sysconfig/kernel: No such file or directory
Comment 3 Rahul Sundaram 2005-06-20 17:21:49 EDT

The default configuration should exist in /etc/sysconfig/kernel which has the
following content in it. 

cat /etc/sysconfig/kernel
# UPDATEDEFAULT specifies if new-kernel-pkg should make
# new kernels the default
# DEFAULTKERNEL specifies the default kernel package type

While its a bad idea for any user to remove /etc/sysconfig/kernel here is what I
suggest as a RFE

new-kernel-pkg script in mkinitrd checks for this. I believe its a good for it
to check uname output or proc to determine if the system is currently running a
SMP kernel and set it to default and fall back to UP if not
Comment 4 Jeremy Katz 2005-06-20 18:03:22 EDT
New installs will end up with the file and if you remove it, it becomes hard to
impossible to definitively pick the "right" answer.

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