forked from pool/libguestfs
4ba8479520
- Fix v2v conversion of SLES 11 SP4 with kdump enabled bsc#1038397 OBS-URL: https://build.opensuse.org/request/show/500560 OBS-URL: https://build.opensuse.org/package/show/Virtualization/libguestfs?expand=0&rev=393
16 lines
711 B
Diff
16 lines
711 B
Diff
Index: libguestfs-1.36.4/v2v/convert_linux.ml
|
|
===================================================================
|
|
--- libguestfs-1.36.4.orig/v2v/convert_linux.ml
|
|
+++ libguestfs-1.36.4/v2v/convert_linux.ml
|
|
@@ -514,7 +514,9 @@ let rec convert (g : G.guestfs) inspect
|
|
else if family = `SUSE_family
|
|
&& g#is_file ~followsymlinks:true "/sbin/mkinitrd" then (
|
|
ignore (
|
|
- g#command [| "/sbin/mkinitrd";
|
|
+ g#command [| "/usr/bin/env";
|
|
+ "rootdev=" ^ inspect.i_root;
|
|
+ "/sbin/mkinitrd";
|
|
"-m"; String.concat " " modules;
|
|
"-i"; initrd;
|
|
"-k"; kernel.ki_vmlinuz;
|