v2v: linux: check the kernel package name for Debian

On Debian-based systems, the kernel packages are named like
"linux-image-$kver", so check for them.
This commit is contained in:
Pino Toscano
2016-08-08 18:19:27 +02:00
parent 03b9f2b967
commit bb3da3b074

View File

@@ -100,7 +100,8 @@ let rec convert ~keep_serial_console (g : G.guestfs) inspect source rcaps =
filter_map (
function
| { G.app2_name = name } as app
when name = "kernel" || String.is_prefix name "kernel-" ->
when name = "kernel" || String.is_prefix name "kernel-"
|| String.is_prefix name "linux-image-" ->
(try
(* For each kernel, list the files directly owned by the kernel. *)
let files = Linux.file_list_of_package g inspect app in