Handle structure parts with size and/or offset < 1MiB
Bug #1630709 reported by
Barry Warsaw
This bug affects 2 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Image |
Fix Released
|
High
|
Łukasz Zemczak |
Bug Description
When calculating the partition spec for sgdisk, we have this bit of code:
partdef = '{}M:+{}M'.format(
This will fail if part.size is < 1MiB because floor division will return a size of zero and thus a spec of e.g. 4M:+0M.
We should either fail early, e.g. in the parser, or min the size value to 1MiB.
Changed in ubuntu-image: | |
milestone: | none → 0.13 |
Changed in ubuntu-image: | |
milestone: | 0.13 → 0.14 |
Changed in ubuntu-image: | |
assignee: | nobody → Łukasz Zemczak (sil2100) |
Changed in ubuntu-image: | |
status: | New → In Progress |
summary: |
- Handle structure parts with size < 1MiB + Handle structure parts with size and offset < 1MiB |
Changed in ubuntu-image: | |
milestone: | 0.14 → 0.15 |
Changed in ubuntu-image: | |
status: | In Progress → Fix Committed |
importance: | Undecided → High |
Changed in ubuntu-image: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
But see also bug #1621151.