v2v: linux: identify Debian-based distros as `Debian_family

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

This does not allow them as supported distributions, yet.
This commit is contained in:
Pino Toscano
2016-08-08 18:04:40 +02:00
parent 0dc0e78340
commit bfa2f140d2

View File

@@ -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");