kernel update process wish - leave /lib/modules alone till reboot

I don’t know where to post this request, but it’s a frequent bug bear

I use Suse:tumbleweed repository

It’s annoying when I do an update and a new kernel comes in and the old one is deleted including the contents of /lib/modules

Is there some way to have opensuse do its kernel update but not clean up old entries in /lib/modules until reboot, not at the time of upgrade?

I suggest you open up the file zypp.conf from the folder /etc/zypp as root, find the code below and remove the comment # from the line that says multiversion = provides:multiversion(kernel)

##
## 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)

In KDE Do: Alt-F2: kdesu kwrite /etc/zypp/zypp.conf

-OR-

In Gnome Do: Alt-F2: gnomesu gedit /etc/zypp/zypp.conf

Enter the root user password, make the suggested change as shown above and then save the file. I think when you run YaST next, the change will take place, but a restart might be good as well. Basically, you will now maintain more that one version of the linux kernel and you must explicitly uncheck any kernel version in YaST so that it will be removed. There is also coding to keep the last and present kernel around, but I am seeing it does not work as intended. With this change I suggest, as a kernel update occurs, you have a new kernel and an older kernel, both selectable from the Grub menu. If you go into YaST, Software Management, search on kernel and go to the versions tab, you can uncheck any (but not the last) kernel you don’t want to keep and then it will all be uninstalled including from your grub menu. As you keep getting newer kernel versions, no older ones will be removed until you say so from YaST manually.

Thank You,