diff options
| author | Wesley Schwengle <wesleys@opperschaap.net> | 2024-01-23 15:41:33 -0400 |
|---|---|---|
| committer | Wesley Schwengle <wesleys@opperschaap.net> | 2024-01-24 13:23:33 -0400 |
| commit | a6e30cc02eb24d5b2bbf2cb1b59c48c62d09658f (patch) | |
| tree | 30a0fdeb6264ae81f53cce85a50780e9a25eaafb /apt-pkg/cachefilter-patterns.h | |
| parent | 2845127968cda30be8423e1d3a24dae0e797bcc8 (diff) | |
Configure the amount of kernels to keep
This commit introduces the following configuration for keeping a
configurable amount of kernels: APT::NeverAutoRemove::KernelCount
The logic dictates that the running kernel and the latest kernel are not
autoremoved. In case the running kernel is the latest kernel, the
previous kernel is kept. Any count lower than two is therefore
disregarded. This is in line with the previous behavior.
The default is therefore similar to:
APT::NeverAutoRemove::KernelCount 2;
This will be ignored and we will still keep two:
APT::NeverAutoRemove::KernelCount 1;
This will keep 3 kernels (including the runnig, and most recent)
APT::NeverAutoRemove::KernelCount 3;
Signed-off-by: Wesley Schwengle <wesleys@opperschaap.net>
Diffstat (limited to 'apt-pkg/cachefilter-patterns.h')
0 files changed, 0 insertions, 0 deletions
