filesystem: check use_gap devices can be boot

This commit is contained in:
Dan Bungert 2022-06-17 09:38:29 -06:00
parent d622c383f6
commit 8e529ca1ad
1 changed files with 3 additions and 1 deletions

View File

@ -472,7 +472,9 @@ class FilesystemController(SubiquityController, FilesystemManipulator):
raise Exception("autoinstall cannot configure storage "
"- no disk found large enough for install")
elif mode == 'use_gap':
gap = gaps.largest_gap(self.model.all_disks())
bootable = [d for d in self.model.all_disks()
if boot.can_be_boot_device(d, with_reformatting=False)]
gap = gaps.largest_gap(bootable)
if not gap:
raise Exception("autoinstall cannot configure storage "
"- no gap found large enough for install")