Bug 702175 - grub.conf does not keep windows as default=0 after yum update with kernel update
Summary: grub.conf does not keep windows as default=0 after yum update with kernel update
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: kernel
Version: 15
Hardware: x86_64
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Kernel Maintainer List
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-05-05 00:30 UTC by mrdvt92
Modified: 2011-05-06 03:22 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-05-05 07:05:58 UTC
Type: ---


Attachments (Terms of Use)

Description mrdvt92 2011-05-05 00:30:54 UTC
Description of problem: 

When upgrading from kernel-2.6.38.4-20.fc15.x86_64 to kernel-2.6.38.5-22.fc15.x86_64 the /etc/grub.conf file changed my default=0 from 

title Windows 7
	rootnoverify (hd0,0)
	chainloader +1

to the new kernel

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

kernel-2.6.38.5-22.fc15.x86_64

$ rpm -q --whatprovides /etc/grub.conf
file /etc/grub.conf is not owned by any package

$ cat /etc/redhat-release 
Fedora release 15 (Lovelock)

How reproducible:

It happen for both kernel-2.6.38.4-20.fc15.x86_64 and kernel-2.6.38.5-22.fc15.x86_64

Steps to Reproduce:
1. Install FC15
2. Edit /etc/grub.conf to put three windows lines in the zero location
3. run yum update (when there's a new kernel)
4. Reboot and Fedora 15 is the default not Win 7
  
Actual results:
Reboot and Fedora 15 is the default not Win 7

Expected results:
For a yum update to not change my default

Additional info:

$ sudo cat /etc/grub.conf 
[sudo] password for mdavis: 
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,2)
#          kernel /vmlinuz-version ro root=/dev/mapper/vg_mdavislatituded830-lv_root
#          initrd /initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
#splashimage=(hd0,2)/grub/splash.xpm.gz
#hiddenmenu
title Windows 7
	rootnoverify (hd0,0)
	chainloader +1
title Fedora (2.6.38.5-22.fc15.x86_64)
	root (hd0,2)
	kernel /vmlinuz-2.6.38.5-22.fc15.x86_64 ro root=/dev/mapper/vg_mdavislatituded830-lv_root rd_LVM_LV=vg_mdavislatituded830/lv_root rd_LVM_LV=vg_mdavislatituded830/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us
	initrd /initramfs-2.6.38.5-22.fc15.x86_64.img
title Fedora (2.6.38.4-20.fc15.x86_64)
	root (hd0,2)
	kernel /vmlinuz-2.6.38.4-20.fc15.x86_64 ro root=/dev/mapper/vg_mdavislatituded830-lv_root rd_LVM_LV=vg_mdavislatituded830/lv_root rd_LVM_LV=vg_mdavislatituded830/lv_swap rd_NO_LUKS rd_NO_MD rd_NO_DM LANG=en_US.UTF-8 SYSFONT=latarcyrheb-sun16 KEYTABLE=us
	initrd /initramfs-2.6.38.4-20.fc15.x86_64.img

Comment 1 Chuck Ebbert 2011-05-05 07:05:58 UTC
Edit /etc/sysconfig/kernel and set UPDATEDEFAULT=0

Comment 2 mrdvt92 2011-05-06 03:22:53 UTC
Chuck,
I guess I want a less black and white solution.  

What I would like is for Fedora, out of the box, to update to the default kernel if it is already the default but not update the default if another distribution or OS is the default.

I've implemented the sysconfig work around but would like to see a long term enterprise solution.

$ cat /etc/sysconfig/kernel 
# UPDATEDEFAULT specifies if new-kernel-pkg should make
# new kernels the default
UPDATEDEFAULT=no

I didn't find any documentation of the sysconfig file syntax.  However, it appears the value should be set to "no" instead of "0".  But, maybe both will work.

We'll see how it works when the next kernel comes out.

Thanks,
Mike

mrdvt92


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