[logrotate] create separate logrotate.d config for update-alternatives (#5382)
To fix the following error when running `logrotate /etc/logrotate.conf` : ``` error: dpkg:10 duplicate log entry for /var/log/alternatives.log error: found error in file dpkg, skipping ``` update-alternatives is provided with dedicated logrotate config in newer dpkg package versions (probably starting from buster) Signed-off-by: Volodymyr Boyko <volodymyrx.boiko@intel.com>
This commit is contained in:
parent
03f82a0107
commit
97aee026de
9
files/image_config/logrotate/logrotate.d/alternatives
Normal file
9
files/image_config/logrotate/logrotate.d/alternatives
Normal file
@ -0,0 +1,9 @@
|
||||
/var/log/alternatives.log {
|
||||
size 100k
|
||||
rotate 1
|
||||
compress
|
||||
delaycompress
|
||||
missingok
|
||||
notifempty
|
||||
create 644 root root
|
||||
}
|
@ -7,12 +7,3 @@
|
||||
notifempty
|
||||
create 644 root root
|
||||
}
|
||||
/var/log/alternatives.log {
|
||||
size 100k
|
||||
rotate 1
|
||||
compress
|
||||
delaycompress
|
||||
missingok
|
||||
notifempty
|
||||
create 644 root root
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user