Pino Toscano
2014-Apr-09 11:58 UTC
[Libguestfs] [PATCH 1/8] sysprep: remove systemd journals
--- sysprep/sysprep_operation_logfiles.ml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysprep/sysprep_operation_logfiles.ml b/sysprep/sysprep_operation_logfiles.ml index cf525c2..bb35daf 100644 --- a/sysprep/sysprep_operation_logfiles.ml +++ b/sysprep/sysprep_operation_logfiles.ml @@ -101,6 +101,9 @@ let globs = List.sort compare [ (* Red Hat subscription manager log files *) "/var/log/rhsm/*"; + + (* journals of systemd *) + "/var/log/journal/*"; ] let globs_as_pod = String.concat "\n" (List.map ((^) " ") globs) -- 1.9.0
Pino Toscano
2014-Apr-09 11:58 UTC
[Libguestfs] [PATCH 2/8] sysprep: remove more anaconda configs/logs
--- sysprep/sysprep_operation_logfiles.ml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sysprep/sysprep_operation_logfiles.ml b/sysprep/sysprep_operation_logfiles.ml index bb35daf..3f05e9c 100644 --- a/sysprep/sysprep_operation_logfiles.ml +++ b/sysprep/sysprep_operation_logfiles.ml @@ -68,7 +68,9 @@ let globs = List.sort compare [ "/root/install.log.syslog"; "/root/anaconda-ks.cfg"; "/root/anaconda-post.log"; + "/root/initial-setup-ks.cfg"; "/var/log/anaconda.syslog"; + "/var/log/anaconda/*"; (* GDM and session preferences. *) "/var/cache/gdm/*"; -- 1.9.0
Pino Toscano
2014-Apr-09 11:58 UTC
[Libguestfs] [PATCH 3/8] sysprep: remove the lightdm logs
--- sysprep/sysprep_operation_logfiles.ml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysprep/sysprep_operation_logfiles.ml b/sysprep/sysprep_operation_logfiles.ml index 3f05e9c..ee9aa30 100644 --- a/sysprep/sysprep_operation_logfiles.ml +++ b/sysprep/sysprep_operation_logfiles.ml @@ -91,6 +91,9 @@ let globs = List.sort compare [ (* log file of gdm *) "/var/log/gdm/*"; + (* log file of lightdm *) + "/var/log/lightdm/*"; + (* log file of ntp *) "/var/log/ntpstats/*"; -- 1.9.0
Pino Toscano
2014-Apr-09 11:58 UTC
[Libguestfs] [PATCH 4/8] sysprep: remove debian-installer files
--- sysprep/sysprep_operation_logfiles.ml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysprep/sysprep_operation_logfiles.ml b/sysprep/sysprep_operation_logfiles.ml index ee9aa30..80c0200 100644 --- a/sysprep/sysprep_operation_logfiles.ml +++ b/sysprep/sysprep_operation_logfiles.ml @@ -72,6 +72,9 @@ let globs = List.sort compare [ "/var/log/anaconda.syslog"; "/var/log/anaconda/*"; + (* debian-installer files *) + "/var/log/installer/*"; + (* GDM and session preferences. *) "/var/cache/gdm/*"; "/var/lib/AccountService/users/*"; -- 1.9.0
Pino Toscano
2014-Apr-09 11:58 UTC
[Libguestfs] [PATCH 5/8] sysprep: remove debug, syslog and faillog logs
--- sysprep/sysprep_operation_logfiles.ml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysprep/sysprep_operation_logfiles.ml b/sysprep/sysprep_operation_logfiles.ml index 80c0200..b804f1a 100644 --- a/sysprep/sysprep_operation_logfiles.ml +++ b/sysprep/sysprep_operation_logfiles.ml @@ -42,6 +42,9 @@ let globs = List.sort compare [ "/var/log/apache2/*_log-*"; "/var/log/ntp"; "/var/log/tuned/tuned.log"; + "/var/log/debug*"; + "/var/log/syslog*"; + "/var/log/faillog*"; (* logfiles configured by /etc/logrotate.d/* *) "/var/log/BackupPC/LOG"; -- 1.9.0
Pino Toscano
2014-Apr-09 11:58 UTC
[Libguestfs] [PATCH 6/8] sysprep: remove apt and aptitude logs
--- sysprep/sysprep_operation_logfiles.ml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sysprep/sysprep_operation_logfiles.ml b/sysprep/sysprep_operation_logfiles.ml index b804f1a..097633a 100644 --- a/sysprep/sysprep_operation_logfiles.ml +++ b/sysprep/sysprep_operation_logfiles.ml @@ -115,6 +115,10 @@ let globs = List.sort compare [ (* journals of systemd *) "/var/log/journal/*"; + + (* Debian logs: apt & aptitude *) + "/var/log/aptitude*"; + "/var/log/apt/*"; ] let globs_as_pod = String.concat "\n" (List.map ((^) " ") globs) -- 1.9.0
--- sysprep/sysprep_operation_logfiles.ml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysprep/sysprep_operation_logfiles.ml b/sysprep/sysprep_operation_logfiles.ml index 097633a..e2685dc 100644 --- a/sysprep/sysprep_operation_logfiles.ml +++ b/sysprep/sysprep_operation_logfiles.ml @@ -119,6 +119,9 @@ let globs = List.sort compare [ (* Debian logs: apt & aptitude *) "/var/log/aptitude*"; "/var/log/apt/*"; + + (* log files of exim *) + "/var/log/exim4/*"; ] let globs_as_pod = String.concat "\n" (List.map ((^) " ") globs) -- 1.9.0
Pino Toscano
2014-Apr-09 11:58 UTC
[Libguestfs] [PATCH 8/8] sysprep: remove ConsoleKit logs
--- sysprep/sysprep_operation_logfiles.ml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysprep/sysprep_operation_logfiles.ml b/sysprep/sysprep_operation_logfiles.ml index e2685dc..2c5dd68 100644 --- a/sysprep/sysprep_operation_logfiles.ml +++ b/sysprep/sysprep_operation_logfiles.ml @@ -122,6 +122,9 @@ let globs = List.sort compare [ (* log files of exim *) "/var/log/exim4/*"; + + (* log files of ConsoleKit *) + "/var/log/ConsoleKit/*"; ] let globs_as_pod = String.concat "\n" (List.map ((^) " ") globs) -- 1.9.0
Richard W.M. Jones
2014-Apr-09 13:51 UTC
Re: [Libguestfs] [PATCH 1/8] sysprep: remove systemd journals
On Wed, Apr 09, 2014 at 01:58:29PM +0200, Pino Toscano wrote:> --- > sysprep/sysprep_operation_logfiles.ml | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/sysprep/sysprep_operation_logfiles.ml b/sysprep/sysprep_operation_logfiles.ml > index cf525c2..bb35daf 100644 > --- a/sysprep/sysprep_operation_logfiles.ml > +++ b/sysprep/sysprep_operation_logfiles.ml > @@ -101,6 +101,9 @@ let globs = List.sort compare [ > > (* Red Hat subscription manager log files *) > "/var/log/rhsm/*"; > + > + (* journals of systemd *) > + "/var/log/journal/*"; > ] > let globs_as_pod = String.concat "\n" (List.map ((^) " ") globs)Yup this whole series is fine, ACK. Thanks, Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://people.redhat.com/~rjones/virt-df/