[PATCH 1/2] sysprep: remove fontconfig cache
Remove the cache files generated by fontconfig. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> --- 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 a2b1585..1bca0dd 100644 --- a/sysprep/sysprep_operation_logfiles.ml +++ b/sysprep/sysprep_operation_logfiles.ml @@ -72,6 +72,9 @@ let globs = List.sort compare [ "/var/cache/gdm/*"; "/var/lib/AccountService/users/*"; "/var/lib/fprint/*"; (* Fingerprint service files *) + + (* fontconfig caches *) + "/var/cache/fontconfig/*"; ] let globs_as_pod = String.concat "\n" (List.map ((^) " ") globs) -- 1.8.0
Remove the cache files generated by man-db. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> --- 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 1bca0dd..43fa33a 100644 --- a/sysprep/sysprep_operation_logfiles.ml +++ b/sysprep/sysprep_operation_logfiles.ml @@ -75,6 +75,9 @@ let globs = List.sort compare [ (* fontconfig caches *) "/var/cache/fontconfig/*"; + + (* man pages cache *) + "/var/cache/man/*"; ] let globs_as_pod = String.concat "\n" (List.map ((^) " ") globs) -- 1.8.0
On Tue, Oct 30, 2012 at 03:50:54PM +0800, Wanlong Gao wrote:
Remove the cache files generated by man-db.
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> --- 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 1bca0dd..43fa33a 100644 --- a/sysprep/sysprep_operation_logfiles.ml +++ b/sysprep/sysprep_operation_logfiles.ml @@ -75,6 +75,9 @@ let globs = List.sort compare [
(* fontconfig caches *) "/var/cache/fontconfig/*"; + + (* man pages cache *) + "/var/cache/man/*"; ] let globs_as_pod = String.concat "\n" (List.map ((^) " ") globs)
Thanks, both pushed. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v
Hi Rich,
On Tue, Oct 30, 2012 at 03:50:54PM +0800, Wanlong Gao wrote:
Remove the cache files generated by man-db.
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> --- 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 1bca0dd..43fa33a 100644 --- a/sysprep/sysprep_operation_logfiles.ml +++ b/sysprep/sysprep_operation_logfiles.ml @@ -75,6 +75,9 @@ let globs = List.sort compare [
(* fontconfig caches *) "/var/cache/fontconfig/*"; + + (* man pages cache *) + "/var/cache/man/*"; ] let globs_as_pod = String.concat "\n" (List.map ((^) " ") globs)
Thanks, both pushed.
I have a question about virt-sysprep. My workmates want to do the test about virt-sysprep command since it will be in RHEL6.4. Do you have any strategies about how to test this command? Thank you . Regards, Wanlong Gao
Rich.
On Tue, Oct 30, 2012 at 04:08:44PM +0800, Wanlong Gao wrote:
Hi Rich,
On Tue, Oct 30, 2012 at 03:50:54PM +0800, Wanlong Gao wrote:
Remove the cache files generated by man-db.
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> --- 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 1bca0dd..43fa33a 100644 --- a/sysprep/sysprep_operation_logfiles.ml +++ b/sysprep/sysprep_operation_logfiles.ml @@ -75,6 +75,9 @@ let globs = List.sort compare [
(* fontconfig caches *) "/var/cache/fontconfig/*"; + + (* man pages cache *) + "/var/cache/man/*"; ] let globs_as_pod = String.concat "\n" (List.map ((^) " ") globs)
Thanks, both pushed.
I have a question about virt-sysprep. My workmates want to do the test about virt-sysprep command since it will be in RHEL6.4. Do you have any strategies about how to test this command? Thank you .
Firstly, the version of virt-sysprep in RHEL 6.4 is the old libguestfs 1.16 shell script version. We test both versions (RHEL 6 & 7) as part of our QA, but the tests are quite simple: just running the command and then ensuring that files have been removed. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/
On 10/30/2012 04:25 PM, Richard W.M. Jones wrote:
On Tue, Oct 30, 2012 at 04:08:44PM +0800, Wanlong Gao wrote:
Hi Rich,
On Tue, Oct 30, 2012 at 03:50:54PM +0800, Wanlong Gao wrote:
Remove the cache files generated by man-db.
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> --- 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 1bca0dd..43fa33a 100644 --- a/sysprep/sysprep_operation_logfiles.ml +++ b/sysprep/sysprep_operation_logfiles.ml @@ -75,6 +75,9 @@ let globs = List.sort compare [
(* fontconfig caches *) "/var/cache/fontconfig/*"; + + (* man pages cache *) + "/var/cache/man/*"; ] let globs_as_pod = String.concat "\n" (List.map ((^) " ") globs)
Thanks, both pushed.
I have a question about virt-sysprep. My workmates want to do the test about virt-sysprep command since it will be in RHEL6.4. Do you have any strategies about how to test this command? Thank you .
Firstly, the version of virt-sysprep in RHEL 6.4 is the old libguestfs 1.16 shell script version.
We test both versions (RHEL 6 & 7) as part of our QA, but the tests are quite simple: just running the command and then ensuring that files have been removed.
OK, I see. Thank you very much. ;) Regards, Wanlong Gao
Rich.
participants (2)
-
Richard W.M. Jones -
Wanlong Gao