[Bug 854348] New: purge-kernels feature missing in dracut
https://bugzilla.novell.com/show_bug.cgi?id=854348 https://bugzilla.novell.com/show_bug.cgi?id=854348#c0 Summary: purge-kernels feature missing in dracut Classification: openSUSE Product: openSUSE Factory Version: 13.2 Milestone 0 Platform: x86-64 OS/Version: openSUSE 13.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:25.0) Gecko/20100101 Firefox/25.0 When installing dracut instead of mkinitrd old kernels are not being purged anymore when the multiversion.kernels feature is activated in /etc/zypp/zypp.conf. The file /boot/do_purge_kernels is correctly generated by a new kernel installation. The files /sbin/purge-kernels, /etc/systemd/system/runlevel5.target.wants/purge-kernels.service (and probably some more) are being deinstalled together with mkinitrd when switching from mkinitrd to dracut. Reproducible: Always Steps to Reproduce: 1. install dracut 2. activate multiversion.kernels in zypp.conf 3. install new kernel 4. reboot Actual Results: Old kernel(s) not being deleted Expected Results: Old kernels will be deleted -- 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=854348 https://bugzilla.novell.com/show_bug.cgi?id=854348#c Borislav Petkov <bpetkov@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|kernel-maintainers@forge.pr |bnc-team-screening@forge.pr |ovo.novell.com |ovo.novell.com -- 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=854348 https://bugzilla.novell.com/show_bug.cgi?id=854348#c Frederic Crozat <fcrozat@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|fcrozat@suse.com |trenn@suse.com -- 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=854348 https://bugzilla.novell.com/show_bug.cgi?id=854348#c3 Thomas Renninger <trenn@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |NEEDINFO InfoProvider| |m4ng4n@gmx.de --- Comment #3 from Thomas Renninger <trenn@suse.com> 2013-12-10 14:40:37 UTC --- >From what I can see /sbin/purge-kernels should work for dracut as well. You can either: 1) Uninstall dracut: rpm -e dracut --nodeps 2) Install mkinitrd: zypper install mkinitrd 3) cp purge-kernels script away: cp /sbin/purge-kernels /tmp 4 Install dracut again: rpm -e mkinitrd --nodeps zypper install dracut or even better: I built a dracut package simply adding /sbin/purge-kernels from mkinitrd: ftp.suse.com/pub/people/trenn/dracut_purge_kernels Does this one solve your problem? -- 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=854348 https://bugzilla.novell.com/show_bug.cgi?id=854348#c4 Andreas Prittwitz <m4ng4n@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |NEW InfoProvider|m4ng4n@gmx.de | --- Comment #4 from Andreas Prittwitz <m4ng4n@gmx.de> 2013-12-12 17:54:12 UTC --- Thanks Thomas, I installed your dracut package and it is working when the following conditions are met: 1.) /sbin/purge-kernels is still broken and can't handle kernels with the"gxxxxx" suffix. A patch - mentioned here: https://bugzilla.novell.com/show_bug.cgi?id=820367 in Comment #6 - has to be applied to the script. 2.) /usr/lib/systemd/system/purge-kernels.service was disabled and has to be activated manually whether in Yast -> System -> Service-Manager or by entering "systemctl start purge-kernels.service" in a terminal. Otherwise it won't work. -- 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=854348 https://bugzilla.novell.com/show_bug.cgi?id=854348#c5 Thomas Renninger <trenn@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED --- Comment #5 from Thomas Renninger <trenn@suse.com> 2013-12-18 14:24:42 UTC --- Andreas: Thanks for the thorough testing! 1.) I will add Michal's patch as well 2.) Enabling systemd services right now is stupid, compare with: http://en.opensuse.org/openSUSE:Systemd_packaging_guidelines "Enabling service" For me in a 13.1 installation there is: enable purge-kernels.service added to: /usr/lib/systemd/system-preset/90-default-openSUSE.preset which is part of: rpm -ql systemd-presets-branding-openSUSE-0.3.0-3.1.2.noarch package. Can you double check whether this is the case for you as well. If not, can you add above line there and re-install the package (or tell me and I can point to a package with Michal's patch to handle git kernels). -- 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=854348 https://bugzilla.novell.com/show_bug.cgi?id=854348#c Thomas Renninger <trenn@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |NEEDINFO InfoProvider| |m4ng4n@gmx.de -- 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=854348 https://bugzilla.novell.com/show_bug.cgi?id=854348#c6 --- Comment #6 from Andreas Prittwitz <m4ng4n@gmx.de> 2013-12-21 12:34:03 UTC --- You're welcome. Here are the steps I undertook to check purge-kernels behaviour and what resulted from my actions: 1. Did a fresh install of factory to exclude all errors resulting from me tinkering with the system settings. 2. Dracut was installed by zypper during the upgrade to factory so I just added the patched purge-kernels script to /sbin. /usr/lib/systemd/system/purge-kernels.service was already present 3. I checked that /usr/lib/systemd/system-preset/90-default-openSUSE.preset included the line "enable purge-kernels.service" and it did. I also discovered that the file /usr/lib/systemd/system-preset/99-default-disable.preset includes the line "disable *" Does that mean, that all services are disabled again? I don't understand this. 4. Installed a new kernel and rebooted. The oldest kernel did not get deleted. The file /boot/do_purge_kernels was still present 5. Rebooted a second time to make sure the command in 3. could be executed properly by the system. Oldest kernel and /boot/do_purge_kernels still present 6. Typed the following command in a Terminal: "systemctl status purge-kernels.service" which gave the following message: "purge-kernels.service - Purge old kernels Loaded: loaded (/usr/lib/systemd/system/purge-kernels.service; disabled) Active: inactive (dead)" 7. Typed the following command in a Terminal: "systemctl enable purge-kernels.service" ln -s '/usr/lib/systemd/system/purge-kernels.service' '/etc/systemd/system/multi-user.target.wants/purge-kernels.service' and rebooted again 8. After the reboot the oldest kernel and /boot/do_purge_kernels were gone 9. Typed the following command in a Terminal: "systemctl status purge-kernels.service purge-kernels.service - Purge old kernels Loaded: loaded (/usr/lib/systemd/system/purge-kernels.service; enabled) Active: inactive (dead) since Sat 2013-12-21 13:09:58 CET; 30s ago Process: 1846 ExecStart=/sbin/purge-kernels (code=exited, status=0/SUCCESS) Process: 711 ExecStartPre=/bin/rm -f /boot/do_purge_kernels (code=exited, status=0/SUCCESS) Main PID: 1846 (code=exited, status=0/SUCCESS) CGroup: /system.slice/purge-kernels.service Dec 21 13:09:58 factory-gnome-test purge-kernels[1846]: Removed: Dec 21 13:09:58 factory-gnome-test purge-kernels[1846]: kernel-desktop-3.11.6... Dec 21 13:09:58 factory-gnome-test systemd[1]: Started Purge old kernels. Hint: Some lines were ellipsized, use -l to show in full." -- 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=854348 https://bugzilla.novell.com/show_bug.cgi?id=854348#c7 Andreas Prittwitz <m4ng4n@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEEDINFO |ASSIGNED InfoProvider|m4ng4n@gmx.de | --- Comment #7 from Andreas Prittwitz <m4ng4n@gmx.de> 2013-12-21 12:34:59 UTC --- forgot to remove needinfo -- 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=854348 https://bugzilla.novell.com/show_bug.cgi?id=854348#c8 Thomas Renninger <trenn@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low Status|ASSIGNED |RESOLVED Resolution| |FIXED Summary|purge-kernels feature |purge-kernels service not |missing in dracut |enabled by default Severity|Major |Minor --- Comment #8 from Thomas Renninger <trenn@suse.com> 2014-02-13 11:26:21 UTC --- Wait, this cannot work: - Install, update package, check service to be enabled as the check which services have to be enabled will only be done once at install. Sorry if I have pointed to something wrong. If the updated package is part of the new 13.2 media purge-kernels should be enabled automatically. Thanks a lot for the detailed tests and descriptions. -> closing. -- 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