Bug 718753

Summary: purge-kernels script removes older kernels but not the corresponding -source and -devel packages
Product: [openSUSE] openSUSE 12.1 Reporter: Andreas Prittwitz <m4ng4n>
Component: BasesystemAssignee: E-mail List <kernel-maintainers>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: bruno
Version: Milestone 5   
Target Milestone: ---   
Hardware: x86-64   
OS: SUSE Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Andreas Prittwitz 2011-09-18 20:27:31 UTC
User-Agent:       Mozilla/5.0 (X11; Linux x86_64; rv:6.0.2) Gecko/20100101 Firefox/6.0.2

I have the kernel sources and the kernel-devel package installed and I am using the multiversion kernel feature in zypp.conf.

The multiversion.kernels line in zypp.conf is

"multiversion.kernels = latest,latest-1,latest-2,running"

because I want to keep the newest kernel and the last two working ones.

The purge-kernels script is working fine as it removes old kernels as configured in zypp.conf during the next reboot following a new kernel install... except for two packages:

The kernel-source and the kernel-devel package are left on disk.
These two packages still have to be removed manually via Yast2 or zypper.

Reproducible: Always

Steps to Reproduce:
1. configure the purge-kernels script in zypp.conf to tell the script how many kernels it should keep (for testing purposes one kernel should be sufficient)
2. install kernel sources
3. install a new kernel with sources when a new kernel is offered in the repo
4. reboot after the installation of the new kernel
5. during reboot the purge-kernels script removes the old kernel but not the corresponding kernel-source and kernel-devel packages
Actual Results:  
old kernel-source and kernel-devel packages are left on disk instead of being removed and have to be removed manually using yast2 or zypper.

Expected Results:  
old kernel-source and kernel-devel packages will be removed together with their corresponding kernel package.

Happens on 32 bit and 64 bit systems.
Comment 1 Zhi Juan Jia 2011-09-19 14:50:05 UTC
*** Bug 718752 has been marked as a duplicate of this bug. ***
Comment 2 Zhi Juan Jia 2011-09-19 14:55:25 UTC
*** Bug 718754 has been marked as a duplicate of this bug. ***
Comment 3 Zhi Juan Jia 2011-09-19 14:56:17 UTC
*** Bug 718755 has been marked as a duplicate of this bug. ***
Comment 4 Michal Marek 2011-09-20 08:54:02 UTC
See the opensuse-kernel list.
Comment 5 Bernhard Wiedemann 2011-09-20 09:00:08 UTC
This is an autogenerated message for OBS integration:
This bug (718753) was mentioned in
https://build.opensuse.org/request/show/83760 Factory / mkinitrd
Comment 6 Bruno Friedmann 2011-09-24 18:22:14 UTC
I've seen it working great this morning with the kernel 3-1-rc6 
Last week there's just an incident with purge_kernel not able to remove an old -devel rpm due to the fact kernel-syms need it 

Did we also have kernel-syms included in the list of things to think ?
Comment 7 Andreas Prittwitz 2011-09-30 16:00:55 UTC
*** Bug 718756 has been marked as a duplicate of this bug. ***