View Issue Details

IDProjectCategoryView StatusLast Update
0003813CentOS-5yumpublic2009-09-02 02:44
Reporterdonavan 
PriorityurgentSeveritycrashReproducibilityalways
Status newResolutionopen 
Product Version5.3 
Target VersionFixed in Version 
Summary0003813: YUM erase kernel\* removes running kernel, breaks grub, yum install kernel fails to reconfigure grub.
Descriptionroot@dyn19:~ >uname -a
Linux dyn19.4wx.net 2.6.18-128.7.1.el5xen #1 SMP Mon Aug 24 09:14:33 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
root@dyn19:~ >rpm -qa |grep kernel
kernel-xen-2.6.18-128.el5.x86_64
kernel-xen-2.6.18-128.7.1.el5.x86_64
root@dyn19:~ >yum erase kernel\*
Loaded plugins: fastestmirror
Setting up Remove Process
Resolving Dependencies
--> Running transaction check
---> Package kernel-xen.x86_64 0:2.6.18-128.el5 set to be erased
---> Package kernel-xen.x86_64 0:2.6.18-128.7.1.el5 set to be erased
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================
 Package Arch Version Repository Size
==============================================================================================================================================================
Removing:
 kernel-xen x86_64 2.6.18-128.el5 installed 84 M
 kernel-xen x86_64 2.6.18-128.7.1.el5 installed 84 M

Transaction Summary
==============================================================================================================================================================
Install 0 Package(s)
Update 0 Package(s)
Remove 2 Package(s)

Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Erasing : kernel-xen [1/2]
grubby fatal error: unable to find a suitable template
grubby: doing this would leave no kernel entries. Not writing out new config.
  Erasing : kernel-xen [2/2]

Removed: kernel-xen.x86_64 0:2.6.18-128.el5 kernel-xen.x86_64 0:2.6.18-128.7.1.el5
Complete!
root@dyn19:~ >rpm -qa |grep kernel
root@dyn19:~ >yum install kernel-xen
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package kernel-xen.x86_64 0:2.6.18-128.7.1.el5 set to be installed
--> Finished Dependency Resolution

Dependencies Resolved

==============================================================================================================================================================
 Package Arch Version Repository Size
==============================================================================================================================================================
Installing:
 kernel-xen x86_64 2.6.18-128.7.1.el5 updates 17 M

Transaction Summary
==============================================================================================================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 17 M
Is this ok [y/N]: y
Downloading Packages:
kernel-xen-2.6.18-128.7.1.el5.x86_64.rpm | 17 MB 00:01
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : kernel-xen [1/1]
grubby fatal error: unable to find a suitable template

Installed: kernel-xen.x86_64 0:2.6.18-128.7.1.el5
Complete!
root@dyn19:~ >cat /boot/grub/menu.lst
# 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,0)
# kernel /vmlinuz-version ro root=/dev/rVG/root
# initrd /initrd-version.img
#boot=/dev/xvda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.18-128.el5xen)
        root (hd0,0)
        kernel /vmlinuz-2.6.18-128.el5xen ro root=/dev/rVG/root console=xvc0
        initrd /initrd-2.6.18-128.el5xen.img
Additional Informationroot@dyn19:~ >rpm -qa |grep yum
yum-metadata-parser-1.1.2-2.el5.x86_64
yum-3.2.19-18.el5.centos.noarch
yum-fastestmirror-1.1.16-13.el5.centos.noarch
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2009-09-02 02:44 donavan New Issue