Skip to content

Commit

Permalink
filesystem: autoinstall reformat_disk match raids
Browse files Browse the repository at this point in the history
  • Loading branch information
dbungert committed Mar 7, 2024
1 parent 8721395 commit 2df24a5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion subiquity/server/controllers/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -1413,7 +1413,10 @@ async def run_autoinstall_guided(self, layout):

if mode == "reformat_disk":
match = layout.get("match", {"size": "largest"})
disk = self.model.disk_for_match(self.model.all_disks(), match)
disks = self.potential_boot_disks(with_reformatting=True)
disk = self.model.disk_for_match(disks, match)
if disk is None:
raise Exception(f"Failed to find matching disk for {match}")
target = GuidedStorageTargetReformat(disk_id=disk.id, allowed=[])
elif mode == "use_gap":
bootable = [
Expand Down

0 comments on commit 2df24a5

Please sign in to comment.