Closed spheromak closed 11 years ago
Okay, this was pretty annoying but I think it's worked out. Mirrors generally only hold the stuff for the latest release, so when requesting for the mirror, only the release should be provided, not the releaseminor. But, if people want to test on stale versions that haven't been upgraded (like 6.1 instead of 6.4) we should provide them a way. So the template has been updated to fetch available mirrors from the mirror list for the requested version, and if no mirrors are available, it will fall back to hitting the vault to pull what it needs.
Since the centos-release rpm has a weird naming scheme with a number thrown in at the end (still not sure what for) the template will scan the packages directory for the package name, and then use that.
Also, looks like packages directory name changed too, so that's updated as well.
For reference: https://github.com/chrisroberts/vagabond/commit/5e806315b4f9e806db67b3e5424ed01a07ea3483
Not sure its even a vagabond issue, might be an ubuntu issue
See this gist: https://gist.github.com/spheromak/a4c8f3cbe8bcc29c511e/raw/25dd91678305c82824355440522f6cfeba7b6a31/gistfile1.txt
centos 5 should be: http://mirror.centos.org/centos/5/os/x86_64/CentOS/centos-release-5-9.el5.centos.1.x86_64.rpm
centos 6 should be: http://mirror.centos.org/centos/6/os/x86_64/Packages/centos-release-6-4.el6.centos.10.x86_64.rpm
The templates reference 6.3/6.4 5.8 (no 5.9) but not all mirrors are going to hold the old 6.3/5.8 packages. Looks like lxc-create is always trying to get the package from the cent6 url ?
Not super awesome with my LXC foo yet. Gonna dig into this some more tomorrow.