rootfs structure smaller than contents should be fatal

Bug #2034926 reported by Michał Sawicz
16
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Ubuntu Image
Triaged
High
Paul Mars

Bug Description

AIUI this warning should be fatal:

WARNING: rootfs structure size 1.17 GiB smaller than actual rootfs contents 1.53 GiB

I wasn't able to boot the image that had the ubuntu-seed volume too small, and it being just a WARNING made me look in the wrong place.

Is there a reason to pass this through? Should this be an explicit option?

Revision history for this message
Ruhan van der Berg (ruhansa079) wrote :

Hello, this bug affects me too. Just wanted to make some noise around this.

Generally, resizing the ubuntu-seed partition size to be a little bit bigger than the actual rootfs contents, resolves the issue for me. I'd agree that this must be a "error" and not a "warning". This regression has been here for a while, since I started building Ubuntu Core 16 images, before it was EOL'ed/deprecated.

In the current state, images are bootable on Ubuntu Core builds, but cannot install properly to the storage medium during "recovery".

Revision history for this message
Emilio Lopez (lopezem) wrote :

There is an option to add `--image-size` in the `ubuntu-image` command which does set the image size however, it still does not resize the ubuntu-seed partition. There is another bug that marked this very issue as "fixed" in the bug link below:

https://bugs.launchpad.net/ubuntu-image/+bug/1981744

Looking at the change log, in the ubuntu image repo, I can see that this bug was referenced and marked as fixed but this issue still persists today in below link:

https://github.com/canonical/ubuntu-image/blob/1313d059066a164c0365410477b54712927275c1/debian/changelog#L94

There hasn't been any update to fix this since.
This was also referred to here as well:

https://forum.snapcraft.io/t/uc20-image-based-on-reference-amd64-gadget-failing-to-install/21041

Revision history for this message
Jonathan Prado (japseabery) wrote :

This bug still persists in ubuntu-image 3.4+snap1

I tested it adding --image-size in the command:

   ubuntu-image snap --image-size=20G ...
   ubuntu-image snap --image-size 20G ...

My model is based on core22

  type: model
  architecture: amd64
  base: core22

but at finish show this warning:

WARNING: rootfs structure size 1.17 GiB smaller than actual rootfs contents 2.33 GiB

Paul Mars (upils)
Changed in ubuntu-image:
importance: Undecided → High
status: New → Confirmed
status: Confirmed → Triaged
assignee: nobody → Paul Mars (upils)
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.