Closed ssgelm closed 11 years ago
In the original PR you said
On first boot it will create a 3rd partition if there is extra space (e.g. by having specified a larger disk size), add it to the LVM VG and expand the volume.
"On first boot"...? I cannot see an insserv -r
anywhere, isn't it on every boot?
That's a good point. The logic in the script is that if there is no third partition on the root disk and if there is enough free space for a third partition it creates it, adds it to LVM, then expands the FS onto it. Because amazon doesn't support resizing an EBS volume without snapshotting and creating a new volume this will generally have the effect of only running on the first boot. The only time the script could do anything otherwise would be if one accepted the original AMI size at first then snapshotted and created a larger EBS volume later.
I ended up recreating the branch to squash the commits...