flegmatik/linux-rootfs-resize

can't resize rootfs in ubuntu 12.04 LTS

silenceli opened this issue · 1 comments

I am going to create a ubuntu cloud image in openstack. I hope this cloud image has the ability to resize rootfs to the size the flavor defined.
I am install cloud-init 0.6.3 + cloud-utils(old) + initramfs-tools + cloud-initramfs-tools,but It didn't work. Then I am install the cloud-init 0.7.5 + cloud-utils (0.26)+ initramfs-tools(latest) + cloud-initramfs-tools(latest), but it still not work.
So,I try to use linux-rootfs-resize, with a clean image,I install cloud-utils(0.25-0ubuntu5.1) + linux-rootfs-resize(lastest), I modify linux-rootfs-resize/install, previous: elif [["$(cat /etc/issus)" == Debian\ GNU....]],now: elif [["$(cat /etc/issus)" == Ubuntu]]; then

Then, I create a 40G snapshot of the image, and boot with the snapshot, Then the screen shows that:
image

and the rootfs is not resize:
image

image

environment:
ubuntu 12.04 LTS
kernel:3.11.0-15-generic

hope you can solve the problem

With a very small change this should work on Ubuntu. I didn't include Ubuntu because you can download cloud ready Ubuntu images from https://cloud-images.ubuntu.com which have rootfs resizing already build in.
To actualy use those images you need to set ubuntu/root password, follow instructions at https://help.ubuntu.com/community/UEC/Images