[Bug 721481] New: purge-kernels script not removing old kernel after installation of a new kernel
https://bugzilla.novell.com/show_bug.cgi?id=721481 https://bugzilla.novell.com/show_bug.cgi?id=721481#c0 Summary: purge-kernels script not removing old kernel after installation of a new kernel Classification: openSUSE Product: openSUSE 12.1 Version: Beta 1 Platform: i586 OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: m4ng4n@gmx.de QAContact: qa@suse.de Found By: --- Blocker: --- Created an attachment (id=453990) --> (http://bugzilla.novell.com/attachment.cgi?id=453990) Output of "rpm -qa" and "grep multiversion" as requested by Michal Marek User-Agent: Mozilla/5.0 (X11; Linux i686; rv:7.0) Gecko/20100101 Firefox/7.0 I installed a new kernel (3.1 RC7) out of the factory repo and rebooted my system afterwards. During the reboot the purge-kernel script did not remove the oldest kernel on my system like it should have. Instead it gave me the following message: "error: failed dependencies: kernel-devel = 2.6.37.6-0.7 is needed by (installed) kernel-xen-devel-2.6.37.6-0.7.1.i586 /sbin/purge-kernels giving up" Reproducible: Always Steps to Reproduce: 1. install a new kernel 2. reboot 3. Actual Results: The oldest kernel including source and devel packages were left on disk. Expected Results: The oldest kernel including source and devel packackes should have been removed. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=721481
https://bugzilla.novell.com/show_bug.cgi?id=721481#c
Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=721481
https://bugzilla.novell.com/show_bug.cgi?id=721481#c1
Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=721481
https://bugzilla.novell.com/show_bug.cgi?id=721481#c2
--- Comment #2 from Andreas Prittwitz
What kernel are you running when this happends?
This one: kernel-default-3.1.rc6-2.1.i586 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=721481
https://bugzilla.novell.com/show_bug.cgi?id=721481#c3
--- Comment #3 from Andreas Prittwitz
(In reply to comment #1)
What kernel are you running when this happends?
This one:
kernel-default-3.1.rc6-2.1.i586
To be more precise: I was running the above kernel when the new one (kernel-default-3.1.rc7-3.1.i586) was installed. The reboot following the kernel installation was done with kernel-default-3.1.rc7-3.1.i586 With the latter the behaviour described above occurred. I did not try the script with a different kernel than kernel-default-3.1.rc7-3.1.i586, -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=721481
https://bugzilla.novell.com/show_bug.cgi?id=721481#c4
--- Comment #4 from Andreas Prittwitz
https://bugzilla.novell.com/show_bug.cgi?id=721481
https://bugzilla.novell.com/show_bug.cgi?id=721481#c5
--- Comment #5 from Andreas Prittwitz
https://bugzilla.novell.com/show_bug.cgi?id=721481
https://bugzilla.novell.com/show_bug.cgi?id=721481#c6
--- Comment #6 from Andreas Prittwitz
Hello Michal,
I just did a zypper dup and installed the new kernel-default-3.1.rc7-3.2.i586 and now the script is working as it should on all my factory test-installations.
I attached a file with the output of rpm -qa just in case you might need it.
I neither do understand why this happened nor do I understand that I have three kernels installed right now (as configured in zypp.conf) but only two of them appear in the grub menu:
3.1.rc6-2 and 3.1.rc7-3
Grub does not seem to make a distinction between the two versions of the rc7 kernel which are -rc7-3.1 and rc7-3.2.
Why is this so? Is this behaviour correct?
It seems that we can consider this bug as "solved", can't we?
Well I couldn't add the attachment (didn't see a way how to do it) so I put the output of rpm -qa inhere: # rpm -qa 'kernel-*' '*-kmp-*' hdjmod-kmp-default-1.28_k3.1.0_rc6_2-4.4.i586 hdjmod-kmp-default-1.28_k3.1.0_rc7_3-4.6.i586 kernel-pae-devel-3.1.rc7-3.1.i586 kernel-syms-3.1.rc7-3.1.i586 kernel-devel-3.1.rc6-2.1.noarch kernel-pae-devel-3.1.rc6-2.1.i586 kernel-source-3.1.rc7-3.2.noarch kernel-devel-3.1.rc7-3.1.noarch kernel-desktop-devel-3.1.rc6-2.1.i586 kernel-default-3.1.rc6-2.1.i586 kernel-firmware-20110709-8.2.noarch kernel-default-devel-3.1.rc7-3.1.i586 kernel-pae-devel-3.1.rc7-3.2.i586 kernel-syms-3.1.rc7-3.2.i586 kernel-xen-devel-3.1.rc7-3.1.i586 hdjmod-kmp-default-1.28_k3.1.0_rc7_3-4.5.i586 kernel-xen-devel-3.1.rc6-2.1.i586 kernel-xen-devel-3.1.rc7-3.2.i586 kernel-default-devel-3.1.rc7-3.2.i586 kernel-desktop-devel-3.1.rc7-3.1.i586 kernel-desktop-devel-3.1.rc7-3.2.i586 kernel-source-3.1.rc7-3.1.noarch kernel-default-3.1.rc7-3.1.i586 kernel-devel-3.1.rc7-3.2.noarch kernel-default-devel-3.1.rc6-2.1.i586 kernel-source-3.1.rc6-2.1.noarch kernel-syms-3.1.rc6-2.1.i586 kernel-default-3.1.rc7-3.2.i586 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=721481
https://bugzilla.novell.com/show_bug.cgi?id=721481#c7
Michal Marek
Hello Michal,
I just did a zypper dup and installed the new kernel-default-3.1.rc7-3.2.i586 and now the script is working as it should on all my factory test-installations.
I attached a file with the output of rpm -qa just in case you might need it.
I neither do understand why this happene
I'll have a look.
d nor do I understand that I have three kernels installed right now (as configured in zypp.conf) but only two of them appear in the grub menu:
3.1.rc6-2 and 3.1.rc7-3
Grub does not seem to make a distinction between the two versions of the rc7 kernel which are -rc7-3.1 and rc7-3.2.
Yeah, that's a corner case. rc7-3.1 and rc7-3.2 are built from the same source and install the same files (the second package overwriting the previous one), only some build dependency triggered a rebuild.
It seems that we can consider this bug as "solved", can't we?
I have to have a look into the previous issue. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=721481
https://bugzilla.novell.com/show_bug.cgi?id=721481#c8
--- Comment #8 from Michal Marek
Well I couldn't add the attachment (didn't see a way how to do it)
There is an "Attachments" box at the bottom of the page.
so I put the output of rpm -qa inhere:
Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=721481
https://bugzilla.novell.com/show_bug.cgi?id=721481#c9
--- Comment #9 from Andreas Prittwitz
(In reply to comment #6)
Well I couldn't add the attachment (didn't see a way how to do it)
There is an "Attachments" box at the bottom of the page.
Found it. Thanks. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=721481
https://bugzilla.novell.com/show_bug.cgi?id=721481#c
Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=721481
https://bugzilla.novell.com/show_bug.cgi?id=721481#c10
Michal Marek
https://bugzilla.novell.com/show_bug.cgi?id=721481
https://bugzilla.novell.com/show_bug.cgi?id=721481#c11
--- Comment #11 from Bernhard Wiedemann
participants (1)
-
bugzilla_noreply@novell.com