[Bug 1905990] Re: UC20 amd64 images are unnecessarily big
Steve Langasek
1905990 at bugs.launchpad.net
Fri Dec 4 18:44:03 UTC 2020
Hello Ćukasz, or anyone else affected,
Accepted livecd-rootfs into focal-proposed. The package will build now
and be available at https://launchpad.net/ubuntu/+source/livecd-
rootfs/2.664.10 in a few hours, and then in the -proposed repository.
Please help us by testing this new package. See
https://wiki.ubuntu.com/Testing/EnableProposed for documentation on how
to enable and use -proposed. Your feedback will aid us getting this
update out to other Ubuntu users.
If this package fixes the bug for you, please add a comment to this bug,
mentioning the version of the package you tested, what testing has been
performed on the package and change the tag from verification-needed-
focal to verification-done-focal. If it does not fix the bug for you,
please add a comment stating that, and change the tag to verification-
failed-focal. In either case, without details of your testing we will
not be able to proceed.
Further information regarding the verification process can be found at
https://wiki.ubuntu.com/QATeam/PerformingSRUVerification . Thank you in
advance for helping!
N.B. The updated package will be released to -updates after the bug(s)
fixed by this package have been verified and the package has been in
-proposed for a minimum of 7 days.
** Changed in: livecd-rootfs (Ubuntu Focal)
Status: In Progress => Fix Committed
** Tags added: verification-needed verification-needed-focal
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to livecd-rootfs in Ubuntu.
https://bugs.launchpad.net/bugs/1905990
Title:
UC20 amd64 images are unnecessarily big
Status in livecd-rootfs package in Ubuntu:
Fix Released
Status in livecd-rootfs source package in Focal:
Fix Committed
Status in livecd-rootfs source package in Groovy:
Invalid
Bug description:
[Impact]
To work-around a bug in ubuntu-image, we hard-coded a `--image-size 8G` in livecd-rootfs for UC20 image builds. The reason for that was that ubuntu-image, in its initial UC20 image build implementation, was skipping yet-to-be-created partitions while calculating the final image size. This was fixed in ubuntu-image 1.10, and now the workaround is no longer required.
Additionally, the HWE team asked if it would be possible for the amd64 images to be smaller than 8GB as they need them to fit on 4GB storage. Without the hard-coded image size the UC20 images are around 3.1GB in size - which would be perfect for their needs.
That being said, after some additional discussion, we decided to still
hard-code the size, but to a smaller value - same as we do for UC18
and UC16. This is to make sure there's enough writable disk space for
normal usage.
[Test case]
Build a -proposed based UC20 focal amd64 image via live-build.
Download the image, decompress it and run `parted <imagefile>`. Print
the partition table and make sure that the image is now big enough for
all the contents (so at least 3GB) but smaller than the previous hard-
coded size (8GB).
[What could go wrong]
Right now there's no real places where things could go wrong. If
anything, the size wouldn't be modified, but this is something we test
for in the test case. Image build failures in case of busted bash
syntax, but we'd see that instantly as well.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/livecd-rootfs/+bug/1905990/+subscriptions
More information about the foundations-bugs
mailing list