better processing of additional images#232
better processing of additional images#232mancdaz wants to merge 3 commits intocloudbuilders:masterfrom
Conversation
…push into glance, don't assume the extracted kernel and image files will have the same basename as the tar.gz.
|
mancdaz, you and I did roughly the same thing here. I think it should cover your use case, and additionally supports ramdisks in the .tar.gz and also play .img and .img.gz files. [1] #231 |
|
yes yours covers more! One thing I would say - in the image I was testing ( http://uec-images.ubuntu.com/oneiric/current/oneiric-server-cloudimg-amd64.tar.gz), both the vmlinuz-generic and vmlinuz-virtual kernels had been bundled. Your modifications stop on the first match of -vmlinuz*, which happens to be the generic one. Might be worth adding a check to make sure you're always getting -vmlinuz-virtual if it exists, and just -vmlinuz if not. |
|
merges are going through gerrit now guys. |
|
i moved this to reviews.gerrit now. |
Not all image tarballs extract to kernel and image files that have the same basename as the tarball. Have changed the logic to figure out the name of the kernel and image files to import into glance rather than just assuming the basename.