So I’m building a custom Ubuntu Core 20 image (stock but with some added local snaps for testing purposes) using ubuntu-image
. Everything worked for a while, but now suddenly I am getting an error WARNING: rootfs structure size 1.17 GiB smaller than actual rootfs contents 1.27 GiB
. I know this issue was raised earlier on the forum.
My temporary solution has been to download the pi gadget snap, unsqashfs, edit gadget.yaml to increase the size from 1200M to 1500M. Which seems to work. But this is a temporary hack at best. It disconnects the gadget snap from the store, and makes it quite difficult to automate the process for faster iterations.
Does anyone know of any other way to set the rootfs size without having to resort to manual poking each time?