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

Hilko Bengen bengen at moszumanska.debian.org
Sun Mar 29 17:00:07 UTC 2015


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

bengen pushed a commit to branch master
in repository libguestfs.

commit 705466a26557ace99eb6f1400657ba7bcc9b1fa5
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
    (cherry picked from commit 63d67ac8ac6ae609514c995704a4dbd6f5ff5647)
---
 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