[Libguestfs] [PATCH 1/2] v2v: linux: remove open-vm-tools packages

Pino Toscano ptoscano at redhat.com
Thu Oct 4 10:11:11 UTC 2018


Linux distributions usually ship the open source VMware tools as
open-vm-tools (and open-vm-tools-desktop for the integration with X).
While they will not run already anymore after the conversion, uninstall
them during the conversion, to save some space in the converted guest.
---
 v2v/convert_linux.ml | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/v2v/convert_linux.ml b/v2v/convert_linux.ml
index 726915875..c401b7f74 100644
--- a/v2v/convert_linux.ml
+++ b/v2v/convert_linux.ml
@@ -297,6 +297,10 @@ let convert (g : G.guestfs) inspect source output rcaps =
           List.push_front name remove
         else if String.is_prefix name "kmod-vmware-tools" then
           List.push_front name remove
+        else if String.is_prefix name "open-vm-tools-" then
+          List.push_front name remove
+        else if name = "open-vm-tools" then
+          List.push_front name remove
     ) inspect.i_apps;
     let libraries = !libraries in
 
-- 
2.17.1




More information about the Libguestfs mailing list