Skip to content

Commit

Permalink
feat(storage): add option to explicitly omit the bootloader
Browse files Browse the repository at this point in the history
  • Loading branch information
aamkye committed Jan 13, 2025
1 parent 36b8ba9 commit e70d289
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions subiquity/models/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -2360,6 +2360,10 @@ def needs_bootloader_partition(self):
elif self.bootloader == Bootloader.BIOS:
return self._one(type="disk", grub_device=True) is None
elif self.bootloader == Bootloader.UEFI:
if len(self._all(type="disk")) > 0 and len(self._all(type="disk")) == len(
self._all(type="disk", grub_device=False)
):
return False
for esp in self._all(type="partition", grub_device=True):
if esp.fs() and esp.fs().mount():
if esp.fs().mount().path == "/boot/efi":
Expand Down

0 comments on commit e70d289

Please sign in to comment.