From: Vratislav Podzimek vpodzime@redhat.com
non-linear LVs require space on specific PVs and thus have stronger restrictions than linear LVs which can be allocated from anywhere. --- blivet/deviceaction.py | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/blivet/deviceaction.py b/blivet/deviceaction.py index 6c42fe9..879de12 100644 --- a/blivet/deviceaction.py +++ b/blivet/deviceaction.py @@ -348,6 +348,10 @@ def requires(self, action): # is not taken by non-cached LVs if not self.device.cached and action.device.cached: rc = True + # create non-linear LVs before linear LVs because the latter ones + # can be allocated anywhere + elif self.device.seg_type == "linear" and action.device.seg_type != "linear": + rc = True elif (action.is_add and action.container == self.container): rc = True
anaconda-patches@lists.fedorahosted.org