[Bug 1947311] Re: Unexpected partition growth on first boot on impish for raspberry pi
Scott Moser
1947311 at bugs.launchpad.net
Thu Feb 17 20:49:13 UTC 2022
@Noah,
cloud-init isn't doing anything wrong. Its working as designed.
'growroot', which is provided by cloud-initramfs-tools (upstream [1],
package [2]) also didn't do anything wrong. It's sole purpose in the
initramfs is to do what it is doing.
I'm not sure what code creates the image you've pointed to. That is the
code that included growroot into the image. Thats what Juerg was saying.
It should not be necessary with any kernel newer than 3.8 (~10 years
ago). If growroot was *not* present, then the user-data you have
provided would tell cloud-init not to grow the partition.
--
[1] https://code.launchpad.net/cloud-initramfs-tools
[2] https://launchpad.net/ubuntu/+source/cloud-initramfs-tools
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ubuntu-image in Ubuntu.
https://bugs.launchpad.net/bugs/1947311
Title:
Unexpected partition growth on first boot on impish for raspberry pi
Status in cloud-init package in Ubuntu:
Incomplete
Status in linux-raspi package in Ubuntu:
Invalid
Status in ubuntu-image package in Ubuntu:
New
Bug description:
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).
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.
Cheers,
Noah
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1947311/+subscriptions
More information about the foundations-bugs
mailing list