From 65ae5ab13ccef602e42c69ac08a74063dbae34f5 Mon Sep 17 00:00:00 2001 From: Dan Bungert Date: Wed, 27 Jul 2022 08:44:15 -0600 Subject: [PATCH] gaps: fix LVM_VolGroup check on Disk --- subiquity/common/filesystem/gaps.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/subiquity/common/filesystem/gaps.py b/subiquity/common/filesystem/gaps.py index e941cf4c..59b6107d 100644 --- a/subiquity/common/filesystem/gaps.py +++ b/subiquity/common/filesystem/gaps.py @@ -115,11 +115,7 @@ def find_disk_gaps_v2(device, info=None): return v - v % info.part_align def maybe_add_gap(start, end, in_extended): - if in_extended: - usable = GapUsable.YES - elif isinstance(device, LVM_VolGroup): - usable = GapUsable.YES - elif primary_parts_remaining > 0: + if in_extended or primary_parts_remaining > 0: usable = GapUsable.YES else: usable = GapUsable.TOO_MANY_PRIMARY_PARTS