[Pkg-libvirt-commits] [libguestfs] 09/26: appliance: init: Initialize LVM in the same way as done on physical machines.

Hilko Bengen bengen at moszumanska.debian.org
Sun Mar 2 13:37:36 UTC 2014


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

bengen pushed a commit to annotated tag upstream/1.25.39
in repository libguestfs.

commit fbe4dad2dedd89d1dae76df0393147398cfa1440
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Thu Feb 27 09:58:47 2014 +0000

    appliance: init: Initialize LVM in the same way as done on physical machines.
    
    Running vgscan appears to be unnecessary.
    
    The -aa option of vgchange activates LVs.
    
    The --sysinit option disables locking.
---
 appliance/init | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/appliance/init b/appliance/init
index aac3f5a..c195718 100755
--- a/appliance/init
+++ b/appliance/init
@@ -90,8 +90,7 @@ mdadm -As --auto=yes --run
 modprobe dm_mod ||:
 lvmetad ||:
 
-lvm vgscan --ignorelockingfailure
-lvm vgchange -ay --ignorelockingfailure
+lvm vgchange -aay --sysinit
 
 # Scan for Windows dynamic disks.
 ldmtool create all

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