filesystem: consider raids for use_gap

This commit is contained in:
Dan Bungert 2024-03-13 09:47:35 -06:00
parent ab7391ee8a
commit c84a94b9f9
1 changed files with 1 additions and 5 deletions

View File

@ -1428,11 +1428,7 @@ class FilesystemController(SubiquityController, FilesystemManipulator):
disk = self.get_bootable_matching_disk(match) disk = self.get_bootable_matching_disk(match)
target = GuidedStorageTargetReformat(disk_id=disk.id, allowed=[]) target = GuidedStorageTargetReformat(disk_id=disk.id, allowed=[])
elif mode == "use_gap": elif mode == "use_gap":
bootable = [ bootable = self.potential_boot_disks(with_reformatting=False)
d
for d in self.model.all_disks()
if boot.can_be_boot_device(d, with_reformatting=False)
]
gap = gaps.largest_gap(bootable) gap = gaps.largest_gap(bootable)
if not gap: if not gap:
raise Exception( raise Exception(