[Bug 1195821] New: /usr/lib/modules/ contains old kernel directories
https://bugzilla.suse.com/show_bug.cgi?id=1195821 Bug ID: 1195821 Summary: /usr/lib/modules/ contains old kernel directories Classification: openSUSE Product: openSUSE Tumbleweed Version: Current Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: screening-team-bugs@suse.de Reporter: ioannis.bonatakis@suse.com QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- inspecting my TW i noticed the following ``` ��� rpm -qa | grep -i kernel-default kernel-default-devel-5.16.2-1.1.x86_64 kernel-default-devel-5.16.4-1.1.x86_64 kernel-default-5.16.4-1.1.x86_64 kernel-default-devel-5.16.5-1.4.x86_64 kernel-default-5.16.5-1.4.x86_64 kernel-default-devel-5.15.12-1.3.x86_64 kernel-default-5.15.12-1.3.x86_64 kernel-default-5.16.2-1.1.x86_64 kernel-default-devel-5.16.1-1.1.x86_64 kernel-default-5.16.1-1.1.x86_64 ��� ll /boot/vm* lrwxrwxrwx 1 root root 24 Feb 10 02:05 /boot/vmlinuz -> vmlinuz-5.16.5- 1-default lrwxrwxrwx 1 root root 44 Jan 10 04:24 /boot/vmlinuz-5.15.12-1-default -> ../usr/lib/modules/5.15.12-1-default/vmlinuz lrwxrwxrwx 1 root root 43 Jan 24 13:20 /boot/vmlinuz-5.16.1-1-default -
../usr/lib/modules/5.16.1-1-default/vmlinuz lrwxrwxrwx 1 root root 43 Feb 1 02:09 /boot/vmlinuz-5.16.2-1-default - ../usr/lib/modules/5.16.2-1-default/vmlinuz lrwxrwxrwx 1 root root 43 Feb 7 10:57 /boot/vmlinuz-5.16.4-1-default - ../usr/lib/modules/5.16.4-1-default/vmlinuz lrwxrwxrwx 1 root root 43 Feb 10 02:05 /boot/vmlinuz-5.16.5-1-default - ../usr/lib/modules/5.16.5-1-default/vmlinuz ��� ll /usr/lib/modules/ | wc -l 52 ��� ll /usr/lib/modules/ total 0 drwxr-xr-x 1 root root 12 Jun 3 2019 4.20.4-1-default drwxr-xr-x 1 root root 14 Mar 7 2021 5.10.12-1-default drwxr-xr-x 1 root root 14 May 9 2021 5.11.12-1-default drwxr-xr-x 1 root root 14 May 9 2021 5.11.15-1-default drwxr-xr-x 1 root root 14 May 9 2021 5.11.16-1-default drwxr-xr-x 1 root root 14 Apr 6 2021 5.11.2-1-default drwxr-xr-x 1 root root 14 May 9 2021 5.11.4-1-default drwxr-xr-x 1 root root 14 Sep 14 2020 5.1.15-1-default drwxr-xr-x 1 root root 14 Aug 9 2021 5.12.0-1-default drwxr-xr-x 1 root root 14 Aug 9 2021 5.12.12-1-default drwxr-xr-x 1 root root 14 Aug 9 2021 5.12.13-1-default drwxr-xr-x 1 root root 14 Aug 9 2021 5.12.9-1-default drwxr-xr-x 1 root root 14 Aug 9 2021 5.13.0-1-default drwxr-xr-x 1 root root 14 Aug 9 2021 5.13.1-1-default drwxr-xr-x 1 root root 14 Sep 1 10:42 5.13.12-1-default drwxr-xr-x 1 root root 14 Sep 30 09:41 5.13.13-1-default drwxr-xr-x 1 root root 14 Aug 18 06:35 5.13.4-1-default drwxr-xr-x 1 root root 14 Aug 24 08:14 5.13.6-1-default drwxr-xr-x 1 root root 14 Aug 31 08:37 5.13.8-1-default drwxr-xr-x 1 root root 14 Sep 30 09:43 5.14.0-1-default drwxr-xr-x 1 root root 14 Nov 8 15:41 5.14.11-1-default drwxr-xr-x 1 root root 14 Sep 30 09:46 5.14.1-1-default drwxr-xr-x 1 root root 14 Oct 15 11:13 5.14.6-1-default drwxr-xr-x 1 root root 14 Oct 25 15:11 5.14.6-2-default drwxr-xr-x 1 root root 14 Oct 25 15:15 5.14.9-1-default drwxr-xr-x 1 root root 676 Feb 7 11:00 5.15.12-1-default drwxr-xr-x 1 root root 14 Dec 16 2019 5.1.5-1-default drwxr-xr-x 1 root root 14 Jan 31 12:58 5.15.2-1-default drwxr-xr-x 1 root root 14 Jan 31 12:58 5.15.3-1-default drwxr-xr-x 1 root root 14 Jan 31 12:59 5.15.5-1-default drwxr-xr-x 1 root root 14 Jan 31 12:59 5.15.6-1-default drwxr-xr-x 1 root root 14 Jan 31 13:00 5.15.7-1-default drwxr-xr-x 1 root root 14 Jan 31 13:01 5.15.8-1-default drwxr-xr-x 1 root root 666 Feb 7 11:00 5.16.1-1-default drwxr-xr-x 1 root root 666 Feb 7 11:00 5.16.2-1-default drwxr-xr-x 1 root root 666 Feb 7 11:03 5.16.4-1-default drwxr-xr-x 1 root root 666 Feb 10 02:05 5.16.5-1-default drwxr-xr-x 1 root root 14 Sep 14 2020 5.3.12-1-default drwxr-xr-x 1 root root 14 Sep 14 2020 5.5.13-1-default drwxr-xr-x 1 root root 14 Sep 14 2020 5.5.2-1-default drwxr-xr-x 1 root root 14 Sep 14 2020 5.5.7-1-default drwxr-xr-x 1 root root 14 Sep 14 2020 5.6.0-1-default drwxr-xr-x 1 root root 14 Sep 14 2020 5.6.14-1-default drwxr-xr-x 1 root root 14 Sep 14 2020 5.7.1-1-default drwxr-xr-x 1 root root 14 Sep 14 2020 5.7.5-1-default drwxr-xr-x 1 root root 14 Nov 24 2020 5.7.7-1-default drwxr-xr-x 1 root root 14 Dec 11 2020 5.8.12-1-default drwxr-xr-x 1 root root 14 Nov 24 2020 5.8.7-1-default drwxr-xr-x 1 root root 14 Feb 11 2021 5.9.1-1-default drwxr-xr-x 1 root root 14 Mar 7 2021 5.9.12-1-default drwxr-xr-x 1 root root 14 Mar 7 2021 5.9.14-1-default
i have already double checked that this can occur with someone else machine
however in another tumbleweed, at least when i run `sudo zypper purge-kernels`
the results were different
��� ll /usr/lib/modules/ total 0 drwxr-xr-x 1 root root 622 Feb 10 02:11 5.16.0-1-default drwxr-xr-x 1 root root 646 Feb 10 02:11 5.16.1-1-default drwxr-xr-x 1 root root 646 Feb 10 02:12 5.16.2-1-default drwxr-xr-x 1 root root 622 Feb 10 02:12 5.16.4-1-default drwxr-xr-x 1 root root 622 Feb 10 02:12 5.16.5-1-default ��� rpm -qa | grep -i kernel-default kernel-default-5.16.2-1.1.x86_64 kernel-default-5.16.0-1.1.x86_64 kernel-default-5.16.1-1.1.x86_64 kernel-default-5.16.4-1.1.x86_64 kernel-default-5.16.5-1.4.x86_64 sudo zypper purge-kernels Reading installed packages... Preparing to purge obsolete kernels... Configuration: latest,latest-1,running Running kernel release: 5.16.1-1-default Running kernel arch: x86_64 Resolving package dependencies... The following 4 packages are going to be REMOVED: bbswitch-kmp-default-0.8_k5.16.0_1-11.51 bbswitch-kmp-default-0.8_k5.16.2_1-11.53 kernel-default-5.16.0-1.1 kernel-default-5.16.2-1.1 .... ��� ll /usr/lib/modules/ total 0 drwxr-xr-x 1 root root 646 Feb 11 09:42 5.16.1-1-default drwxr-xr-x 1 root root 622 Feb 10 02:12 5.16.4-1-default drwxr-xr-x 1 root root 622 Feb 10 02:12 5.16.5-1-default ��� rpm -qa | grep -i kernel-default kernel-default-5.16.1-1.1.x86_64 kernel-default-5.16.4-1.1.x86_64 kernel-default-5.16.5-1.4.x86_64 ``` Reproduce: Compare installed kernels and corresponding dirs in _/usr/lib/modules/_ i am not sure whether this is reproducible in every case. The reason is that in another machine (TW again), i had different results with `sudo zypper purge-kernels` Expected: _/usr/lib/modules/_ should be cleaned up by the update scripts. Additional info: - zypper 1.14.51 - RPM version 4.17.0 -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1195821 https://bugzilla.suse.com/show_bug.cgi?id=1195821#c1 Takashi Iwai <tiwai@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |martin.wilck@suse.com, | |tiwai@suse.com --- Comment #1 from Takashi Iwai <tiwai@suse.com> --- In your case, all stale /lib/modules/* directories are empty? Adding Martin to Cc. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1195821 Ann Davis <andavis@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |andavis@suse.com -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1195821 https://bugzilla.suse.com/show_bug.cgi?id=1195821#c2 Jiri Slaby <jslaby@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |jslaby@suse.com --- Comment #2 from Jiri Slaby <jslaby@suse.com> --- A potentinal dup of bug 1190920. -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1195821 https://bugzilla.suse.com/show_bug.cgi?id=1195821#c4 --- Comment #4 from Yiannis Bonatakis <ioannis.bonatakis@suse.com> --- i checked again and the /usr/lib/modules/ containers only dirs aligned with the installed versions. it looks clean. I am about to close this. But i would like to know if something has changed in the meanwhile -- You are receiving this mail because: You are on the CC list for the bug.
https://bugzilla.suse.com/show_bug.cgi?id=1195821 https://bugzilla.suse.com/show_bug.cgi?id=1195821#c5 Martin Wilck <martin.wilck@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution|--- |FIXED --- Comment #5 from Martin Wilck <martin.wilck@suse.com> --- It was fixed in kdump-0.9.2, released early this year. -- You are receiving this mail because: You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@suse.com