summaryrefslogtreecommitdiffstats
path: root/sysprep
diff options
context:
space:
mode:
authorWanlong Gao <gaowanlong@cn.fujitsu.com>2012-04-27 14:18:52 +0800
committerRichard W.M. Jones <rjones@redhat.com>2012-04-27 08:49:07 +0100
commitac75e46c5a4d7c2e6330efd34f4c5a2a0bc71fe5 (patch)
treee1d8bffefbba53f4069ea20cf3725f44499de721 /sysprep
parente493884a7600e4c71f31bb4041cca13a44c56236 (diff)
downloadlibguestfs-ac75e46c5a4d7c2e6330efd34f4c5a2a0bc71fe5.tar.gz
libguestfs-ac75e46c5a4d7c2e6330efd34f4c5a2a0bc71fe5.tar.xz
libguestfs-ac75e46c5a4d7c2e6330efd34f4c5a2a0bc71fe5.zip
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 <gaowanlong@cn.fujitsu.com>
Diffstat (limited to 'sysprep')
-rw-r--r--sysprep/sysprep_operation_logfiles.ml21
1 files changed, 21 insertions, 0 deletions
diff --git a/sysprep/sysprep_operation_logfiles.ml b/sysprep/sysprep_operation_logfiles.ml
index 2ad3726a..cf728037 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";