[Pkg-libvirt-commits] [libguestfs] 53/66: v2v: Remap device in /etc/sysconfig/grub boot= entry.

Hilko Bengen bengen at moszumanska.debian.org
Fri Oct 3 14:47:47 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to annotated tag debian/1%1.27.54-1
in repository libguestfs.

commit 6e9dd6752fab0c8cdc67e7ba9745050093444295
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Tue Sep 23 22:16:24 2014 +0100

    v2v: Remap device in /etc/sysconfig/grub boot= entry.
    
    Old virt-v2v did not remap this device, so after conversion from Xen
    the file would have something like:
    
      boot=/dev/xvda
    
    Although this does not appear to affect anything, better to remap it.
---
 v2v/convert_linux.ml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/v2v/convert_linux.ml b/v2v/convert_linux.ml
index 2cd1688..9bb800d 100644
--- a/v2v/convert_linux.ml
+++ b/v2v/convert_linux.ml
@@ -1265,6 +1265,7 @@ let rec convert ~verbose ~keep_serial_console (g : G.guestfs) inspect source =
       "/files" ^ grub_config ^ "/*/kernel/root";
       "/files" ^ grub_config ^ "/*/kernel/resume";
       "/files/boot/grub/device.map/*[label() != \"#comment\"]";
+      "/files/etc/sysconfig/grub/boot";
 
       (* grub2 config *)
       "/files/etc/sysconfig/grub/GRUB_CMDLINE_LINUX";

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list