[Bug 775604] New: purge-kernels script not invoked automatically since kernel 3.5.0-35 on the next boot process anymore
https://bugzilla.novell.com/show_bug.cgi?id=775604 https://bugzilla.novell.com/show_bug.cgi?id=775604#c0 Summary: purge-kernels script not invoked automatically since kernel 3.5.0-35 on the next boot process anymore Classification: openSUSE Product: openSUSE 12.1 Version: Final Platform: x86-64 OS/Version: openSUSE 12.1 Status: NEW Severity: Major Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: m4ng4n@gmx.de QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:14.0) Gecko/20100101 Firefox/14.0.1 The following happens on two 64-bit machines and one 32-bit machine being updated by Tumbleweed. (Did not have the opportunity to test this with factory yet) It started with kernel 3.5.0-36 and holds also true for kernel 3.5.1-37. When installing a new kernel (it doesn't matter if this is done by zypper or yast2) the purge-kernels script does not get invoked on the next boot process anymore and the old kernel(s) including source and devel packages remain on the disk instead of being removed as configured in /etc/zypp/zypp.conf. During kernel installation the file /boot/do_purge_kernels is created as it should be. On the next boot process the purge-kernels script is not executed and the file /boot/do_purge_kernels is still present after the reboot. This is true for every subsequent boot process. On the other hand, logging in on a console as root and executing "purge-kernels" manually removes old kernel(s) and packages properly as configured. My conclusion is, that the purge-kernels script is working properly since it is removing older kernel(s) as configured and the file /boot/do_purge_kernels is deleted correctly afterwards, when executed manually from a command line. It seems that the script does not get invoked automatically on a reboot anymore. There are no entries in /var/log/messages concerning purge-kernels. Reproducible: Always Steps to Reproduce: 1. Install new kernel 2. Reboot 3. Actual Results: The purge-kernels script is not executed after the installation of a new kernel and a subsequent reboot of the system. Old kernel(s) still on disk instead of being removed as configured in /etc/zypp/zypp.conf. File /boot/do_purge_kernels still present after reboot. -- 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=775604 https://bugzilla.novell.com/show_bug.cgi?id=775604#c1 Christian Boltz <suse-beta@cboltz.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |suse-beta@cboltz.de AssignedTo|kernel-maintainers@forge.pr |mmarek@suse.com |ovo.novell.com | --- Comment #1 from Christian Boltz <suse-beta@cboltz.de> 2012-08-13 00:35:58 CEST --- This might be related to the .service file added some weeks ago: # rpm -q --changelog mkinitrd * Do Jul 26 2012 mmarek@suse.cz - Add purge-kernels.service to the filelist. -- 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=775604 https://bugzilla.novell.com/show_bug.cgi?id=775604#c2 --- Comment #2 from Andreas Prittwitz <m4ng4n@gmx.de> 2012-08-13 12:26:21 UTC --- (In reply to comment #1)
This might be related to the .service file added some weeks ago:
# rpm -q --changelog mkinitrd * Do Jul 26 2012 mmarek@suse.cz - Add purge-kernels.service to the filelist.
Good shot, Christian. The service file at /lib/systemd/system/purge-kernels.service has a typo: [Unit] Description=Purge old kernels After=local_fs.target ConditionPathExists=/boot/do_pure_kernels [Service] Type=oneshot ExecStartPre=/bin/rm -f /boot/do_pure_kernels ExecStart=/sbin/purge-kernels [Install] WantedBy=multi-user.target I changed it back to "do_purge_kernels" on one of my machines and it is working again. I also looked into my factory test-installations and the typo is present there, too. -- 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=775604 https://bugzilla.novell.com/show_bug.cgi?id=775604#c3 Fabio Scl <fa0sck@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fa0sck@gmail.com --- Comment #3 from Fabio Scl <fa0sck@gmail.com> 2012-09-10 20:41:07 UTC --- I'm on openSUSE 12.2 (64bit kernel-desktop-3.4.6-2.10.1) and had to fix the same typos (pure --> purge twice) for the file /lib/systemd/system/purge-kernels.service provided by mkinitrd-2.7.1-62.6.1.x86_64 Looking for the bug here in bugzilla I found this bug, please let me know if I should open a new bug, change the product version of the current report, or other. Regards. -- 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=775604 https://bugzilla.novell.com/show_bug.cgi?id=775604#c4 Michal Marek <mmarek@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |WONTFIX --- Comment #4 from Michal Marek <mmarek@suse.com> 2013-09-30 08:09:42 UTC --- openSUSE <= 12.1 is no longer active. If you still can reproduce the problem with openSUSE 12.3 or Factory, please reopen the bug and change the product field accordingly. Sorry that I did not have time to address this bug. -- 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.
participants (1)
-
bugzilla_noreply@novell.com