mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
v2v: tell v2v the real root device to mkinitrd
Complementary fix of commit 2d25872df3.
On SLES 11 SP4 with kdump enabled mkinitrd calls mkdumprd which calls
mkinitrd, but mkdumprd doesn't have any clue of the root device.
Call mkinitrd with rootdev environment variable to tell them all
what device to use as root.
Tested-By: Cédric Bosdonnat <cbosdonnat@suse.com>
This commit is contained in:
committed by
Richard W.M. Jones
parent
8c89299d8a
commit
76eeb0afc9
@@ -514,7 +514,9 @@ let rec convert (g : G.guestfs) inspect source output rcaps =
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user