Add patches in the git format-patch format.

--
Mikhail Gordeev
From 2cf36df077f632ad96157ed9c3751499748cfc3c Mon Sep 17 00:00:00 2001
From: Mikhail Gordeev <[email protected]>
Date: Wed, 26 Aug 2020 17:00:30 +0300
Subject: [PATCH 3/3] Add ALT initrd creation

---
 v2v/convert_linux.ml | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/v2v/convert_linux.ml b/v2v/convert_linux.ml
index be6dc110..a7a3919e 100644
--- a/v2v/convert_linux.ml
+++ b/v2v/convert_linux.ml
@@ -658,6 +658,17 @@ let convert (g : G.guestfs) inspect source_disks output rcaps _ =
 
         run_update_initramfs_command ()
       )
+      else if g#is_file ~followsymlinks:true "/usr/sbin/make-initrd" then (
+        ignore (
+          g#command [|
+            (* by default make-initrd running in vm add virtio and other
+             * needed to boot modules
+             *)
+            "/usr/sbin/make-initrd";
+             "-k"; kernel.ki_version;
+          |]
+        )
+      )
       else if g#is_file ~followsymlinks:true "/sbin/mkinitrd" then (
         let module_args = List.map (sprintf "--with=%s") modules in
         let args =
-- 
2.25.4

From 33a8b02eabb0ba025502b95289b01a4cd5aaca15 Mon Sep 17 00:00:00 2001
From: Mikhail Gordeev <[email protected]>
Date: Wed, 26 Aug 2020 16:59:42 +0300
Subject: [PATCH 2/3] Add ALT to documentation and to register_convert_module

---
 docs/virt-v2v-support.pod | 2 ++
 v2v/convert_linux.ml      | 1 +
 v2v/convert_linux.mli     | 2 +-
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/docs/virt-v2v-support.pod b/docs/virt-v2v-support.pod
index 8333366b..39ac1340 100644
--- a/docs/virt-v2v-support.pod
+++ b/docs/virt-v2v-support.pod
@@ -91,6 +91,8 @@ And hence L<virsh(1)>, L<virt-manager(1)>, and similar tools.
 
 =item OpenSUSE 10 and up
 
+=item ALT Linux 9 and up
+
 =item Debian 6 and up
 
 =item Ubuntu 10.04, 12.04, 14.04, 16.04, and up
diff --git a/v2v/convert_linux.ml b/v2v/convert_linux.ml
index 9106ead5..be6dc110 100644
--- a/v2v/convert_linux.ml
+++ b/v2v/convert_linux.ml
@@ -1234,6 +1234,7 @@ let () =
                     | "rhel" | "centos" | "scientificlinux" | "redhat-based"
                     | "oraclelinux"
                     | "sles" | "suse-based" | "opensuse"
+                    | "altlinux"
                     | "debian" | "ubuntu" | "linuxmint" | "kalilinux") } -> true
     | _ -> false
   in
diff --git a/v2v/convert_linux.mli b/v2v/convert_linux.mli
index 22511b13..5823fe65 100644
--- a/v2v/convert_linux.mli
+++ b/v2v/convert_linux.mli
@@ -19,7 +19,7 @@
 (** Convert a Linux guest to run on KVM.
 
     This module converts certain Enterprise Linux guests to run on
-    KVM.  RHEL, SuSE, Fedora, CentOS, OracleLinux, Debian, Ubuntu,
+    KVM.  RHEL, SuSE, Fedora, CentOS, OracleLinux, ALT, Debian, Ubuntu,
     Mint and Kali are supported by this module.
 
     No functions are exported.  When the module is linked to virt-v2v
-- 
2.25.4

From 708dbba19d371154f58398ff25f261aaba04c09b Mon Sep 17 00:00:00 2001
From: Mikhail Gordeev <[email protected]>
Date: Wed, 26 Aug 2020 16:58:47 +0300
Subject: [PATCH 1/3] Add ALT family

---
 v2v/convert_linux.ml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/v2v/convert_linux.ml b/v2v/convert_linux.ml
index a871d754..9106ead5 100644
--- a/v2v/convert_linux.ml
+++ b/v2v/convert_linux.ml
@@ -51,6 +51,7 @@ let convert (g : G.guestfs) inspect source_disks output rcaps _ =
     | "fedora"
     | "rhel" | "centos" | "scientificlinux" | "redhat-based"
     | "oraclelinux" -> `RHEL_family
+    | "altlinux" -> `ALT_family
     | "sles" | "suse-based" | "opensuse" -> `SUSE_family
     | "debian" | "ubuntu" | "linuxmint" | "kalilinux" -> `Debian_family
     | _ -> assert false in
-- 
2.25.4

_______________________________________________
Libguestfs mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libguestfs

Reply via email to