Am 14.02.22 um 20:49 schrieb Carlos E. R.:
On 2022-02-14 20:03, Frank Kunz wrote:
I found on my system that there are some more intird files created after a zypper dup when a new kernel version is installed, as installed kernels are available. When I delete the files manually, they are re-created after the next kernel update again.
Can this be configured or is that a bug?
systemctl status purge-kernels.service
Is it enabled?
Yes, but it does only a cleanup of the kernels, but not the initrd: systemctl status purge-kernels.service ○ purge-kernels.service - Purge old kernels Loaded: loaded (/usr/lib/systemd/system/purge-kernels.service; enabled; vendor preset: enabled) Active: inactive (dead) since Mon 2022-02-14 20:17:43 CET; 48min ago Process: 1728 ExecStart=/usr/bin/zypper -n purge-kernels (code=exited, status=0/SUCCESS) Process: 16077 ExecStartPost=/bin/rm -f /boot/do_purge_kernels (code=exited, status=0/SUCCESS) Main PID: 1728 (code=exited, status=0/SUCCESS) CPU: 59.651s Feb 14 20:17:35 donald.fritz.box zypper[1728]: (4/5) kernel-default-devel-5.16.4-1.1.x86_64 wird entfernt [...> Feb 14 20:17:35 donald.fritz.box [RPM][15353]: Transaction ID 620aaacf started Feb 14 20:17:36 donald.fritz.box [RPM][15353]: erase kernel-devel-5.16.4-1.1.noarch: success Feb 14 20:17:39 donald.fritz.box [RPM][15353]: erase kernel-devel-5.16.4-1.1.noarch: success Feb 14 20:17:39 donald.fritz.box [RPM][15353]: Transaction ID 620aaacf finished: 0 Feb 14 20:17:39 donald.fritz.box zypper[1728]: (5/5) kernel-devel-5.16.4-1.1.noarch wird entfernt [.....fertig] Feb 14 20:17:43 donald.fritz.box zypper[1728]: Feb 14 20:17:43 donald.fritz.box systemd[1]: purge-kernels.service: Deactivated successfully. Feb 14 20:17:43 donald.fritz.box systemd[1]: Finished Purge old kernels. Feb 14 20:17:43 donald.fritz.box systemd[1]: purge-kernels.service: Consumed 59.651s CPU time.