[opensuse] TW: Zypper dup : removal of previous kernels
Hello List , TW: zypper dup : How may i prevent removal of previous kernels ? { in /etc/zypp/zypp.conf had uncommented "multiversion = provides:multiversion(kernel)" but seems this no longer prevents removal of previous kernels. } thanks ...... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
* ellanios82
Hello List ,
TW: zypper dup : How may i prevent removal of previous kernels ?
{ in
/etc/zypp/zypp.conf
had uncommented "multiversion = provides:multiversion(kernel)"
but seems this no longer prevents removal of previous kernels. }
I believe it does but not point releases as: 4.7.0-1.1 4.7.0-1.2 4.7.0-1.3 at least it does for me on Tw. -- (paka)Patrick Shanahan Plainfield, Indiana, USA @ptilopteri http://en.opensuse.org openSUSE Community Member facebook/ptilopteri http://wahoo.no-ip.org Photo Album: http://wahoo.no-ip.org/gallery2 Registered Linux User #207535 @ http://linuxcounter.net -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Patrick Shanahan composed on 2016-08-11 19:32 (UTC-0400):
ellanios82 composed:
TW: zypper dup : How may i prevent removal of previous kernels ?
{ in
/etc/zypp/zypp.conf
had uncommented "multiversion = provides:multiversion(kernel)"
On next uncommented line following that one, do you have a line that looks anything like this? multiversion.kernels = latest,latest-1,running
but seems this no longer prevents removal of previous kernels. }
I believe it does but not point releases as: 4.7.0-1.1 4.7.0-1.2 4.7.0-1.3
at least it does for me on Tw.
Same here. -- "The wise are known for their understanding, and pleasant words are persuasive." Proverbs 16:21 (New Living Translation) Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/12/2016 02:48 AM, Felix Miata wrote:
Patrick Shanahan composed on 2016-08-11 19:32 (UTC-0400):
ellanios82 composed:
TW: zypper dup : How may i prevent removal of previous kernels ?
{ in
/etc/zypp/zypp.conf
had uncommented "multiversion = provides:multiversion(kernel)"
On next uncommented line following that one, do you have a line that looks anything like this?
multiversion.kernels = latest,latest-1,running
but seems this no longer prevents removal of previous kernels. }
I believe it does but not point releases as: 4.7.0-1.1 4.7.0-1.2 4.7.0-1.3
at least it does for me on Tw.
Same here.
- thank you Patrick , thank you Felix ............ - am trying placing a new file called 'multiversion.d' [there was nothing before] in : /etc/zypp/multiversion.d/ - i do not understand anything about how to construct such a file , but struggling to understand the 'example' , have taken this attempt to make file : ............................ - file is named 'multiversion.d' , in directory : /etc/zypp/multiversion.d/ ## Aug 11, 2016 ## ------------------------- [/etc/zypp/multiversion.d/example file begin] ----------------------- ## # An alternate way to enable kernel packages being ## # installed in parallel: ## ## provides:multiversion(kernel) ## ------------------------- [/etc/zypp/multiversion.d/example file end] ----------------------- ## ## Valid values: A directory ## Default value: {configdir}/multiversion.d ## multiversiondir = /etc/zypp/multiversion.d ## Comma separated list of kernel packages to keep installed in parallel, if the ## above multiversion variable is set. Packages can be specified as ## 2.6.32.12-0.7 - Exact version to keep ## latest - Keep kernel with the highest version number ## latest-N - Keep kernel with the Nth highest version number ## running - Keep the running kernel ## oldest - Keep kernel with the lowest version number (the GA kernel) ## oldest+N - Keep kernel with the Nth lowest version number ## ## Note: This entry is not evaluated by libzypp, but by the ## purge-kernels service (via /sbin/purge-kernels). ## ## Default: Do not delete any kernels if multiversion = provides:multiversion(kernel) is set ## Jan 06, 2016 : changed from latest-1 to latest-3 multiversion.kernels = latest,latest-3,running ...................... Does this attempt look 'workable' ? thank you regards ......... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Fri, Aug 12, 2016 at 9:11 AM, ellanios82
## Comma separated list of kernel packages to keep installed in parallel, if the ## above multiversion variable is set. Packages can be specified as ## 2.6.32.12-0.7 - Exact version to keep ## latest - Keep kernel with the highest version number ## latest-N - Keep kernel with the Nth highest version number ## running - Keep the running kernel ## oldest - Keep kernel with the lowest version number (the GA kernel) ## oldest+N - Keep kernel with the Nth lowest version number ## ## Note: This entry is not evaluated by libzypp, but by the ## purge-kernels service (via /sbin/purge-kernels). ## ## Default: Do not delete any kernels if multiversion = provides:multiversion(kernel) is set ## Jan 06, 2016 : changed from latest-1 to latest-3 multiversion.kernels = latest,latest-3,running
That does not do what you probably expect. "latest/oldest" refer to list of currently installed kernel packages. But after it has been executed the very first time, only at most two packages remain, so "latest-3" (which means - the third package in the list) will never match and on next reboot the oldest will be removed as well leaving you with only one package. From now on you will have at most two kernel packages ever (assuming you reboot every time new kernel is installed) so older will always be removed on reboot.
......................
Does this attempt look 'workable' ?
See above. In addition this setting has absolutely nothing to do with your problem because it is evaluated by purge-kernels service and not by zypper. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/12/2016 10:06 AM, Andrei Borzenkov wrote:
purge-kernels service
- thank you . i would like to remove old kernels 'By-Hand' , therefore , is solution to stop "purge-kernels service" ? & and if so , then How ? thanks ......... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/12/2016 10:50 AM, ellanios82 wrote:
On 08/12/2016 10:06 AM, Andrei Borzenkov wrote:
purge-kernels service
- thank you .
i would like to remove old kernels 'By-Hand' ,
therefore , is solution to stop "purge-kernels service" ?
& and if so , then How ?
thanks
.........
Dear Andrei , - i have executed : # systemctl disable purge-kernels.service Removed symlink /etc/systemd/system/multi-user.target.wants/purge-kernels.service. ............. Is this the correct Solution to my wish to maintain old kernels ? thanks ellan .......... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On Fri, Aug 12, 2016 at 11:02 AM, ellanios82
- i have executed :
# systemctl disable purge-kernels.service Removed symlink /etc/systemd/system/multi-user.target.wants/purge-kernels.service.
.............
Is this the correct Solution to my wish to maintain old kernels ?
I suppose yes, if you want to remove them manually. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/12/2016 11:22 AM, Andrei Borzenkov wrote:
On Fri, Aug 12, 2016 at 11:02 AM, ellanios82
wrote: - i have executed :
# systemctl disable purge-kernels.service Removed symlink /etc/systemd/system/multi-user.target.wants/purge-kernels.service.
.............
Is this the correct Solution to my wish to maintain old kernels ?
I suppose yes, if you want to remove them manually.
- many thanks : just the ticket :) best ........ -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/12/2016 11:22 AM, Andrei Borzenkov wrote:
On Fri, Aug 12, 2016 at 11:02 AM, ellanios82
wrote: - i have executed :
# systemctl disable purge-kernels.service Removed symlink /etc/systemd/system/multi-user.target.wants/purge-kernels.service.
.............
Is this the correct Solution to my wish to maintain old kernels ?
I suppose yes, if you want to remove them manually.
Dear Andrei , with this solution , upon executing : rpm -Uvh --force kernel-default-xxx.x86_64.rpm all previous kernels are forceably removed :(( - What to do please ? thanks ......... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
15.08.2016 20:53, ellanios82 пишет:
On 08/12/2016 11:22 AM, Andrei Borzenkov wrote:
On Fri, Aug 12, 2016 at 11:02 AM, ellanios82
wrote: - i have executed :
# systemctl disable purge-kernels.service Removed symlink /etc/systemd/system/multi-user.target.wants/purge-kernels.service.
.............
Is this the correct Solution to my wish to maintain old kernels ?
I suppose yes, if you want to remove them manually.
Dear Andrei , with this solution ,
upon executing :
rpm -Uvh --force kernel-default-xxx.x86_64.rpm
all previous kernels are forceably removed :((
That is what update does - it updates to the latest version and removes older ones.
- What to do please ?
Do not use update (-U), use install (-i). Although I am not sure why you use rpm directly in the first place. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/15/2016 09:22 PM, Andrei Borzenkov wrote:
15.08.2016 20:53, ellanios82 пишет:
On 08/12/2016 11:22 AM, Andrei Borzenkov wrote:
On Fri, Aug 12, 2016 at 11:02 AM, ellanios82
wrote: - i have executed :
# systemctl disable purge-kernels.service Removed symlink /etc/systemd/system/multi-user.target.wants/purge-kernels.service.
.............
Is this the correct Solution to my wish to maintain old kernels ?
I suppose yes, if you want to remove them manually.
Dear Andrei , with this solution ,
upon executing :
rpm -Uvh --force kernel-default-xxx.x86_64.rpm
all previous kernels are forceably removed :((
That is what update does - it updates to the latest version and removes older ones.
- What to do please ?
Do not use update (-U), use install (-i). Although I am not sure why you use rpm directly in the first place.
- many thanks Andrei regards ...... -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/12/2016 03:06 AM, Andrei Borzenkov wrote:
On Fri, Aug 12, 2016 at 9:11 AM, ellanios82
wrote: ## Comma separated list of kernel packages to keep installed in parallel, if the ## above multiversion variable is set. Packages can be specified as ## 2.6.32.12-0.7 - Exact version to keep ## latest - Keep kernel with the highest version number ## latest-N - Keep kernel with the Nth highest version number ## running - Keep the running kernel ## oldest - Keep kernel with the lowest version number (the GA kernel) ## oldest+N - Keep kernel with the Nth lowest version number ## ## Note: This entry is not evaluated by libzypp, but by the ## purge-kernels service (via /sbin/purge-kernels). ## ## Default: Do not delete any kernels if multiversion = provides:multiversion(kernel) is set ## Jan 06, 2016 : changed from latest-1 to latest-3 multiversion.kernels = latest,latest-3,running
That does not do what you probably expect. "latest/oldest" refer to list of currently installed kernel packages. But after it has been executed the very first time, only at most two packages remain, so "latest-3" (which means - the third package in the list) will never match and on next reboot the oldest will be removed as well leaving you with only one package. From now on you will have at most two kernel packages ever (assuming you reboot every time new kernel is installed) so older will always be removed on reboot.
Maybe so, but I have multiversion.kernels = latest,latest-1,latest-2,running after I decided to drop the distribution kernel (the on-disk BtrFS root file system had been updated and the distribution kernel would not handle it) However I have one and only one kernel. As far as I can tell it is the latest from the Kernel_Stable repository. -- If God does not write LisP, God writes some code so similar to LisP as to make no difference. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 2016-08-12 08:11, ellanios82 wrote:
- am trying placing a new file called 'multiversion.d' [there was nothing before] in :
Never ever name a file as 'something.d'. The '.d' means it is a directory, for humans. The computer doesn't mind. Of course, it is up to you if you wish to risk shooting your own foot. -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)
On 08/11/2016 07:32 PM, Patrick Shanahan wrote:
* ellanios82
[08-11-16 15:02]: Hello List ,
TW: zypper dup : How may i prevent removal of previous kernels ?
{ in
/etc/zypp/zypp.conf
had uncommented "multiversion = provides:multiversion(kernel)"
but seems this no longer prevents removal of previous kernels. }
I believe it does but not point releases as: 4.7.0-1.1 4.7.0-1.2 4.7.0-1.3
at least it does for me on Tw.
That is the case for me since I upgraded to 13.2 I have one and only one kernel despite the appropriate line. In the past, that is while using 13.1 and its dessicated zypper and purge-kernels I held on to the distribution kernel (which, I admit, was not a lot of use since the updates to the on-disk Btrfs had made it invalid) and the previous two kernels, including the point releases. Now I have ONLY the current kernel. If this is "what the future holds" no wonder some CosPlayers like historic re-enactments. -- A: Yes. > Q: Are you sure? >> A: Because it reverses the logical flow of conversation. >>> Q: Why is top posting frowned upon? -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 08/11/2016 10:01 PM, ellanios82 wrote:
Hello List ,
TW: zypper dup : How may i prevent removal of previous kernels ?
{ in
/etc/zypp/zypp.conf
had uncommented "multiversion = provides:multiversion(kernel)"
but seems this no longer prevents removal of previous kernels. }
thanks
......
............ # systemctl disable purge-kernels.service Removed symlink /etc/systemd/system/multi-user.target.wants/purge-kernels.service. ............. cheers ellan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (6)
-
Andrei Borzenkov
-
Anton Aylward
-
Carlos E. R.
-
ellanios82
-
Felix Miata
-
Patrick Shanahan