[Libguestfs] [PATCH v2 3/7] v2v: linux: identify Debian-based distros as `Debian_family

Pino Toscano ptoscano at redhat.com
Fri Aug 26 09:02:05 UTC 2016


Identify these distributions, so it is possible to add specific code
for them.

This does not allow them as supported distributions, yet.
---
 v2v/convert_linux.ml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/v2v/convert_linux.ml b/v2v/convert_linux.ml
index efac0da..ce9a1e3 100644
--- a/v2v/convert_linux.ml
+++ b/v2v/convert_linux.ml
@@ -77,6 +77,7 @@ let rec convert ~keep_serial_console (g : G.guestfs) inspect source rcaps =
     | "rhel" | "centos" | "scientificlinux" | "redhat-based"
     | "oraclelinux" -> `RHEL_family
     | "sles" | "suse-based" | "opensuse" -> `SUSE_family
+    | "debian" | "ubuntu" | "linuxmint" -> `Debian_family
     | _ -> assert false in
 
   assert (inspect.i_package_format = "rpm" || inspect.i_package_format = "deb");
-- 
2.7.4




More information about the Libguestfs mailing list