snapcore / pi-gadget

Universal pi (pi2,pi3,pi4,cm3,cm4 and future) gadget snap for Ubuntu Core and classic systems.
30 stars 60 forks source link

Partition always grows (growpart off ignored) on Ubuntu 21.10 + Jammy daily #85

Closed noaho closed 2 years ago

noaho commented 2 years ago

Hi,

On Raspberry Pi since Impish, the partition always grows even if I set the following in user-data of cloud-init.

growpart: mode: off devices: ['/']

I have tested this on 21.04, and it works, but is broken on 21.10. (partition always grows)

I've also tested this in KVM on amd64, and it works (partition does NOT grow).

I've tested this on the latest jammy raspberry pi daily as at 20210216 and it is also an issue.

This is a problem for me because I am using runcmd in cloud-init to migrate my drive to LVM/LUKS, and the partitioning step fails because the drive is already full.

I've submitted a ticket to the ubuntu bug tracker, but so far nobody can tell me where the Raspberry Pi modification occur... Is this the correct repo? If not, does anyone have any idea how I can find when the behavior changed and why? Or a lead on which repo I should post this to?

https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1947311

Thanks! Noah

Meulengracht commented 2 years ago

I'm not sure this is a pi-gadget issue as you are not running ubuntu-core, and pi-gadget isn't used for classic images. I'll close this issue unless I hear anything otherwise.

noaho commented 2 years ago

No worries.