From ac75e46c5a4d7c2e6330efd34f4c5a2a0bc71fe5 Mon Sep 17 00:00:00 2001 From: Wanlong Gao Date: Fri, 27 Apr 2012 14:18:52 +0800 Subject: [PATCH] sysprep: remove the logfiles configured by logrotate Remove the logfiles configured by /etc/logrotate.d/*. Omit the logfile of "samba" and "sssd" which we removed them separately . Signed-off-by: Wanlong Gao --- sysprep/sysprep_operation_logfiles.ml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/sysprep/sysprep_operation_logfiles.ml b/sysprep/sysprep_operation_logfiles.ml index 2ad3726ae..cf7280377 100644 --- a/sysprep/sysprep_operation_logfiles.ml +++ b/sysprep/sysprep_operation_logfiles.ml @@ -38,6 +38,27 @@ let globs = List.sort compare [ "/var/log/tallylog*"; "/var/log/wtmp*"; + (* logfiles configured by /etc/logrotate.d/* *) + "/var/log/BackupPC/LOG"; + "/var/log/ceph/*.log"; + "/var/log/chrony/*.log"; + "/var/log/cups/*_log"; + "/var/log/glusterfs/*glusterd.vol.log"; + "/var/log/glusterfs/glusterfs.log"; + "/var/log/httpd/*log"; + "/var/log/jetty/jetty-console.log"; + "/var/log/libvirt/libvirtd.log"; + "/var/log/libvirt/lxc/*.log"; + "/var/log/libvirt/qemu/*.log"; + "/var/log/libvirt/uml/*.log"; + "/var/named/data/named.run"; + "/var/log/ppp/connect-errors"; + "/var/account/pacct"; + "/var/log/setroubleshoot/*.log"; + "/var/log/squid/*.log"; + (* And the status file of logrotate *) + "/var/lib/logrotate.status"; + (* yum installation files *) "/root/install.log"; "/root/install.log.syslog";