Bug 1507197

Summary: Do not use log rotation for /var/log/boot.log
Product: Red Hat Enterprise Linux 7 Reporter: Amey <abetkike>
Component: plymouthAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.4CC: bgollahe, tpelka
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: plymouth-0.8.9-0.30.20140113.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-10 18:38:54 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Amey 2017-10-28 07:21:02 UTC
Description of problem:

boot.log is rotated by a /etc/logrotate.d/bootlog (owned by plymouth package). It rotates daily even if empty. The default behaviour should be to rotate notifempty, or only on boot.
NOTE: This was corrected in RHEL6 via https://bugzilla.redhat.com/show_bug.cgi?id=683537 but has regressed in RHEL7


Version-Release number of selected component (if applicable):


How reproducible:

always

Steps to Reproduce:

below the file from RHEL 7.4
++
[root@rhel7u4-2 ~]# cat /etc/logrotate.d/bootlog 
/var/log/boot.log
{
    missingok
    daily
    copytruncate
    rotate 7
}
++

Actual results:
/var/log/boot.log rotated due to /etc/logrotate.d/bootlog which is present as part of installation

Expected results:

/var/log/boot.log should not be rotated daily



Additional info:
n/a

Comment 6 errata-xmlrpc 2018-04-10 18:38:54 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2018:0999