[Bug 1117086] New: Automatic cleanup of old kernels not working
http://bugzilla.opensuse.org/show_bug.cgi?id=1117086 Bug ID: 1117086 Summary: Automatic cleanup of old kernels not working Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.0 Hardware: x86-64 OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel Assignee: kernel-maintainers@forge.provo.novell.com Reporter: bwheater@acm.org QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Firefox/60.0 Build Identifier: Kernel is not being purge to 2 copies as specified Reproducible: Always Steps to Reproduce: 1. old kernels still present after reboot 2. 3. Actual Results: After kernel update and reboot there are more than two kernels. zypp.conf specifies 2 but there are 4 kernels and zipped copies of 4 more. Expected Results: Still 4 kernels instead of two. Also vmlinuz link points to old kernel. bob1@localhost:~> ls -l /boot/vmlin* -rw-r--r-- 1 root root 7993788 May 14 2018 /boot/vmlinux-4.12.14-lp150.11-default.gz -rw-r--r-- 1 root root 8026729 Oct 5 04:22 /boot/vmlinux-4.12.14-lp150.12.19-default.gz -rw-r--r-- 1 root root 8028448 Oct 13 10:55 /boot/vmlinux-4.12.14-lp150.12.22-default.gz -rw-r--r-- 1 root root 8031511 Nov 2 03:20 /boot/vmlinux-4.12.14-lp150.12.25-default.gz lrwxrwxrwx 1 root root 32 Nov 10 18:05 /boot/vmlinuz -> vmlinuz-4.12.14-lp150.11-default -rw-r--r-- 1 root root 7028944 May 14 2018 /boot/vmlinuz-4.12.14-lp150.11-default -rw-r--r-- 1 root root 7057520 Oct 5 04:47 /boot/vmlinuz-4.12.14-lp150.12.19-default -rw-r--r-- 1 root root 7057520 Oct 13 11:24 /boot/vmlinuz-4.12.14-lp150.12.22-default -rw-r--r-- 1 root root 7061616 Nov 2 03:44 /boot/vmlinuz-4.12.14-lp150.12.25-default ------------- zypp.conf: ## ## Packages which can be installed in different versions at the same time. ## ## Packages are selected either by name, or by provides. In the later case ## the string must start with "provides:" immediately followed by the capability. ## ## Example: ## kernel - just packages whith name 'kernel' ## provides:multiversion(kernel) - all packages providing 'multiversion(kernel)' ## (kenel and kmp packages should do this) ## Valid values: ## Comma separated list of packages. ## ## Default value: ## empty ## multiversion = provides:multiversion(kernel) ## ## Defining directory which may contain additional multiversion definitions. ## ## If the directory exists, each file in this directory is scanned, expecting ## one valid multiversion list entry per line. Empty lines and lines starting ## with '#' are ignored. ## ------------------------- [/etc/zypp/multiversion.d/example file begin] ----------------------- ## # An alternate way to enable kernel packages being ## # installed in parallel: ## ## provides:multiversion(kernel) ## ------------------------- [/etc/zypp/multiversion.d/example file end] ----------------------- ## ## Valid values: A directory ## Default value: {configdir}/multiversion.d ## # multiversiondir = /etc/zypp/multiversion.d ## Comma separated list of kernel packages to keep installed in parallel, if the ## above multiversion variable is set. Packages can be specified as ## 2.6.32.12-0.7 - Exact version to keep ## latest - Keep kernel with the highest version number ## latest-N - Keep kernel with the Nth highest version number ## running - Keep the running kernel ## oldest - Keep kernel with the lowest version number (the GA kernel) ## oldest+N - Keep kernel with the Nth lowest version number ## ## Note: This entry is not evaluated by libzypp, but by the ## purge-kernels service (via /sbin/purge-kernels). ## ## Default: Do not delete any kernels if multiversion = provides:multiversion(kernel) is set multiversion.kernels = latest,latest-1,running since latest and running are the same after reboot there should be only two versions: uname -a Linux localhost 4.12.14-lp150.12.25-default #1 SMP Thu Nov 1 06:14:23 UTC 2018 (3fcf457) x86_64 x86_64 x86_64 GNU/Linux systemd kernel-purge.service fails to run if I try to start it.:
From /usr/lib/systemd/system/purge-kernels.service:
[Unit] Description=Purge old kernels After=local-fs.target ConditionPathExists=/boot/do_purge_kernels ConditionPathIsReadWrite=/ [Service] Type=oneshot Nice=19 IOSchedulingClass=idle ExecStartPre=/bin/rm -f /boot/do_purge_kernels ExecStart=/sbin/purge-kernels [Install] WantedBy=multi-user.target ------------------- note: /boot/do_purge_kernels does not exist. Its says that it is one time but the kernels should be purged after every kernel update. The forums indicate that they have the expected 2 kernels, so why has this purge mechanism stopped working. They are using up extra disk space that is needed. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.opensuse.org/show_bug.cgi?id=1117086
http://bugzilla.opensuse.org/show_bug.cgi?id=1117086#c2
--- Comment #2 from bob wheater
http://bugzilla.opensuse.org/show_bug.cgi?id=1117086
http://bugzilla.opensuse.org/show_bug.cgi?id=1117086#c3
bob wheater
http://bugzilla.opensuse.org/show_bug.cgi?id=1117086
http://bugzilla.opensuse.org/show_bug.cgi?id=1117086#c6
Philippe Condé
http://bugzilla.opensuse.org/show_bug.cgi?id=1117086
http://bugzilla.opensuse.org/show_bug.cgi?id=1117086#c7
--- Comment #7 from bob wheater
http://bugzilla.opensuse.org/show_bug.cgi?id=1117086
http://bugzilla.opensuse.org/show_bug.cgi?id=1117086#c8
Philippe Condé
http://bugzilla.opensuse.org/show_bug.cgi?id=1117086
http://bugzilla.opensuse.org/show_bug.cgi?id=1117086#c13
bob wheater
http://bugzilla.opensuse.org/show_bug.cgi?id=1117086
http://bugzilla.opensuse.org/show_bug.cgi?id=1117086#c15
--- Comment #15 from bob wheater
http://bugzilla.opensuse.org/show_bug.cgi?id=1117086
http://bugzilla.opensuse.org/show_bug.cgi?id=1117086#c16
--- Comment #16 from bob wheater
http://bugzilla.opensuse.org/show_bug.cgi?id=1117086
http://bugzilla.opensuse.org/show_bug.cgi?id=1117086#c17
bob wheater
participants (1)
-
bugzilla_noreply@novell.com