Skip to content

Commit

Permalink
storage: log disk-id in POST /storage/v2/add_boot_partition
Browse files Browse the repository at this point in the history
It seems that we have a strange behavior when
/storage/v2/add_boot_partition is called on a disk different from the
disk partitioned for installation. However, we did not log the disk ID
so post-mortem analysis is very hard.

Signed-off-by: Olivier Gayot <[email protected]>
  • Loading branch information
ogayot committed Oct 7, 2024
1 parent c56f96a commit de5356b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions subiquity/server/controllers/filesystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -1327,6 +1327,7 @@ async def v2_reformat_disk_POST(self, data: ReformatDisk) -> StorageResponseV2:
return await self.v2_GET()

async def v2_add_boot_partition_POST(self, disk_id: str) -> StorageResponseV2:
log.debug("v2_add_boot_partition: disk-id: %s", disk_id)
self.locked_probe_data = True
disk = self.model._one(id=disk_id)
if boot.is_boot_device(disk):
Expand Down

0 comments on commit de5356b

Please sign in to comment.