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.
This commit is contained in:
Richard W.M. Jones
2014-02-27 09:58:47 +00:00
parent 06011270ec
commit fbe4dad2de

View File

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