[Libguestfs] [PATCH 6/8] sysprep: remove apt and aptitude logs

Pino Toscano ptoscano at redhat.com
Wed Apr 9 11:58:34 UTC 2014


---
 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




More information about the Libguestfs mailing list