Don't use ignoreskipactivation for thin LVM
This causes failures for volume clone and is not needed for thin. Closes-Bug: #1701545 Change-Id: Ia47ca585985917f998e0a3d4cec36912ce57f579
This commit is contained in:
parent
32ab0d1670
commit
b82ab0d1a0
|
@ -681,7 +681,8 @@ class LVM(executor.Executor):
|
||||||
# and fails.
|
# and fails.
|
||||||
cmd = ['lvchange', '-a', 'y', '--yes']
|
cmd = ['lvchange', '-a', 'y', '--yes']
|
||||||
|
|
||||||
if self.supports_lvchange_ignoreskipactivation:
|
if (self.supports_lvchange_ignoreskipactivation and
|
||||||
|
self.vg_thin_pool is None):
|
||||||
cmd.append('-K')
|
cmd.append('-K')
|
||||||
# If permanent=True is specified, drop the skipactivation flag in
|
# If permanent=True is specified, drop the skipactivation flag in
|
||||||
# order to make this LV automatically activated after next reboot.
|
# order to make this LV automatically activated after next reboot.
|
||||||
|
|
Loading…
Reference in New Issue