Description of problem: The default kernel in rhel-5.5-client/32 is PAE kernel and there's no kmod-spice-usb-redirector for PAE kernel, so we need yum install common kernel in order to install kmod-spice-usb-redirector, after that when we try to remove kmod-spice-usb-redirector, there appears an error message. Version-Release number of selected component (if applicable): kmod-spice-usb-redirector-4.5-2.el5.i386.rpm How reproducible: Always Steps to Reproduce: 1.Install common kernel to rhel-5.5-client os: # yum install kernel.i686 2.Reboot, select the common kernel at grub 3.Install kmod-spice-usb-redirector and all dependent packages 4.Remove kmod-spice-usb-redirector: # rpm -e kmod-spice-usb-redirector Actual results: An error message appears: FATAL: Could not open '/boot/System.map-2.6.18-194.el5': No such file or directory Expected results: No error message appears Additional info: # uname -a Linux dhcp-66-70-192.nay.redhat.com 2.6.18-194.3.1.el5 #1 SMP Sun May 2 04:22:18 EDT 2010 i686 i686 i386 GNU/Linux # ll /boot/System.map-2.6.18-194.* -rw-r--r-- 1 root root 967664 May 2 16:37 /boot/System.map-2.6.18-194.3.1.el5 -rw-r--r-- 1 root root 965159 Mar 17 10:05 /boot/System.map-2.6.18-194.el5PAE
I think this also true for 64 bit OS. Note that the kernel has been updated (2.6.18-194.3.1.el5 vs 2.6.18-194). The problem is in the %postun section. Fix is to make it similar to the %post section, which is: only call depmod if "/boot/System.map-${verrel}${variant}" exists. Fix is in kmodtool (which is basically a change to the spec-file).
Let me know if you need anything from me.
Verified on kspiceusb-kmod-4.5-8.el5 rpm -e spice-usb-share will raise mentioned output.
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHBA-2011-0122.html