On Fri, Jan 4, 2013 at 4:26 PM, Peter Robinson <pbrobin...@gmail.com> wrote: > On Fri, Jan 4, 2013 at 9:22 AM, Juerg Haefliger <jue...@gmail.com> wrote: >> On Sun, Dec 23, 2012 at 1:21 PM, Matthew Miller >> <mat...@fedoraproject.org> wrote: >>> On Sat, Dec 22, 2012 at 08:16:39PM +0100, Juerg Haefliger wrote: >>>> > On Fri, Dec 21, 2012 at 10:25:07AM +0100, Juerg Haefliger wrote: >>>> >> I have a need for the growroot feature that comes with cloud-utils and >>>> >> cloud-initramfs-tools. I've noticed that these packages don't exist in >>>> >> Fedora/EPEL and was wondering if there are any specific reasons for >>>> >> that? >>>> > The cloud-init package in F18 includes this. I'm not sure about EPEL. >>>> I'm not seeing it in F18's cloud-init >>>> (cloud-init-0.7.1-2.fc18.noarch). Maybe I didn't make myself clear >>>> enough and we're talking about different things. What I'm looking for >>>> is the initramfs script that enlarges the root partition to the >>>> maximum possible size during first boot so that cloud-init can later >>>> grow the root filesystem. >>> >>> Ah -- no, I think we may just be missing that. On the road now -- will look >>> later when I have better internet. >> >> FYI, I started to build a package. Hope it will be useful :-) > > We have a package that does this that we built for ARM images to do > exactly the same thing on varying sized SD cards etc. It's called > rootfs-resize and patches are welcome if it doesn't quite meet your > needs.
If I understand correctly, your package provides a systemd script that resizes the root partition, reboots and then resizes the filesystem. I'm looking for something that runs out of the initramfs to (only) resize the partition before it's mounted so that cloud-init, which runs later on, can grow the root filesystem. It also needs to support both GPT and legacy partitions. It seems to me that the easier approach would be to patch and package the missing Ubuntu packages since they're already (almost) doing what is required and they're designed to work in conjunction with cloud-init rather than shoe'horning additional functionality into rootfs-resize. ...Juerg > Peter > _______________________________________________ > cloud mailing list > cloud@lists.fedoraproject.org > https://admin.fedoraproject.org/mailman/listinfo/cloud _______________________________________________ cloud mailing list cloud@lists.fedoraproject.org https://admin.fedoraproject.org/mailman/listinfo/cloud