[Pkg-libvirt-commits] [libguestfs] 85/116: v2v: linux: Delete the LVM cache which may reference old devices (RHBZ#1164853).

Hilko Bengen bengen at moszumanska.debian.org
Wed Nov 26 22:05:27 UTC 2014


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

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

commit 63d67ac8ac6ae609514c995704a4dbd6f5ff5647
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Thu Nov 20 11:22:32 2014 +0000

    v2v: linux: Delete the LVM cache which may reference old devices (RHBZ#1164853).
    
    Thanks: Bryn M. Reeves
---
 v2v/convert_linux.ml | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/v2v/convert_linux.ml b/v2v/convert_linux.ml
index 3468090..f670812 100644
--- a/v2v/convert_linux.ml
+++ b/v2v/convert_linux.ml
@@ -1379,8 +1379,14 @@ let rec convert ~verbose ~keep_serial_console (g : G.guestfs) inspect source =
 
     (* Delete blkid caches if they exist, since they will refer to the old
      * device names.  blkid will rebuild these on demand.
+     *
+     * Delete the LVM cache since it will contain references to the
+     * old devices (RHBZ#1164853).
      *)
-    List.iter g#rm_f ["/etc/blkid/blkid.tab"; "/etc/blkid.tab"]
+    List.iter g#rm_f [
+      "/etc/blkid/blkid.tab"; "/etc/blkid.tab";
+      "/etc/lvm/cache/.cache"
+    ];
   in
 
   augeas_grub_configuration ();

-- 
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