The --image-size argument no longer correctly sizes the resulting image [2.0]

Bug #1947867 reported by Łukasz Zemczak
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Image
Fix Released
Critical
Unassigned

Bug Description

It seems that --image-size doesn't quite work as expected. The end disk is not sized properly:

$ ubuntu-image snap -d -w test --image-size 8G -O ./output/dragonboard-18-beta ./models/ubuntu-core-18-amd64.model
$ fdisk -l pc.img
GPT PMBR size mismatch (1060947 != 1062995) will be corrected by write.
The backup GPT table is not on the end of the device.
Disk pc.img: 519.04 MiB, 544253952 bytes, 1062996 sectors

It can be seen that the end size of the disk is ~544MB instead of 8G. Comparing this to what we had in the previous ubuntu-image:

$ fdisk -l pc.img
Disk pc.img: 8 GiB, 8589934592 bytes, 16777216 sectors

(Note to self: we need to make sure that we have a new testcase for each of these bugs)

Tags: fr-1812
tags: added: fr-1812
Changed in ubuntu-image:
status: New → Fix Committed
Changed in ubuntu-image:
status: Fix Committed → Fix Released
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.