Handle structure parts with offset < 1MiB

Bug #1653949 reported by Łukasz Zemczak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Image
In Progress
Undecided
Łukasz Zemczak

Bug Description

Related to this bug: https://bugs.launchpad.net/ubuntu-image/+bug/1630709

We currently do new='{}M:+{}K'.format(part.offset // MiB(1), ceil(part.size / 1024)) when doing a call to sgdisk. We also do some assumptions that offsets are 1MiB min earlier in the code.

Realistically speaking we need to switch to 1KiB being the min (not feasible to have more precision as sgdisk accepts 1K as the smallest, or sector numbers).

Revision history for this message
Barry Warsaw (barry) wrote :

I think we should dupe this bug to LP: #1630709 and handle both cases in the same branch. See my other comments to that bug.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.