On Wednesday, November 09, 2011 13:14:48 Freigeist wrote:
Am 09.11.2011 12:29, schrieb Carlos E. R.:
On Wednesday, 2011-11-09 at 12:09 +0100, Freigeist wrote:
With this feature the old kernel gets deleted after the system has booted with the new kernel.
You can read more about this here:
http://lizards.opensuse.org/2011/07/14/improved-kernel-package-retenti on-in-12-1/> I don't quite get it. It appears that the previous version is deleted after reboot. I would want to delete it only when another update comes, ie, always keep the current and previous versions installed.
All you need to do is uncomment
'Multiversion = provides:multiversion(kernel)'
and uncomment and change the 'multiversion.kernels' line as follows:
'multiversion.kernels = latest,latest-1,running'
The latter will care for that two kernels are kept.
I know it is a bit confusing when using multiversion.kernels at first but it becomes clearer if you read what Michal Marek wrote in lizards.
He says that
'multiversion.kernels = latest,running'
means
"Keep the latest kernel and the running one if it differs."
This means, that if you boot your newly installed kernel the running kernel _is_ the latest kernel. Hence the latest and the running kernel do not differ because they are actually the same.
Meaning that if you always intend to boot a new kernel after it has been installed (and not an older one) and you want to keep additional kernels, for each kernel that you want to keep there must be an additional entry in the multiversion.kernels line:
'latest-1' if you want to keep the previous kernel you were running when downloading and installing the new one.
'latest-2' to also keep the kernel that is older than 'kernel-1', and so on.
So if you would like to keep e.g. four kernels just change the multversion.kernels line to this:
'multiversion.kernels = latest,latest-1,latest-2,latest-3,running'
May I ask what the default is? Does openSUSE by default remove your kernel right away or does it keep it until after reboot? I'm asking 'cuz this is nice to mention in the product highlights: http://en.opensuse.org/Product_highlights#Zypper Feel free to fix it :D Cheers, Jos
Best Regards,
Andreas