mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
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>
This commit is contained in:
committed by
Richard W.M. Jones
parent
e493884a76
commit
ac75e46c5a
@@ -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";
|
||||
|
||||
Reference in New Issue
Block a user