I have a question around the auto expansion of the disk image. I know when I flash a Ubuntu Core image on a Raspberry Pi Compute Module 3+, it will then automatically expand the filesystem to the limits of the disk on boot.
Does this also happen when I make a disk image backup, and shrink the partition for faster flashing on another unit? If not, how can I force the system to expand again after flashing the “golden” image? The reason behind this, is we have a image that works, and need to deploy that image with all the stuff set up to other Raspberry Pi Compute Modules, which may have different sizes of storage (16G, 32G). Or should a script do that?