aeolusproject/imagefactory — pull request #141 by imcleod (2012-08-16 03:46:00+00:00)
Title: Feature/rhel support v3

(This is called "v3" mainly because I had to rebase against changes in master twice. It is easier to do this by creating a new renamed local branch and then pushing it up to github.)

This restores two key features from Image Factory v1:

1) The ability to specify target specific packages and repos via target_content.xml

2) Support for RHEL-5 and RHEL-6 as OS types. The most significant enabling change for this resides in the vSphere builder and is supported by a candidate interface change in the Feodra OS plugin. This allows us to execute commands against a local running version of the image during target_image creation and customization. We use this to add the mptspi SCSI driver to vSphere images _after_ the base image has been created.

The mechanism in #2 is entirely different from how we accomplished this in the v1 code. In the v1 code we modified the ks.cfg used for the initial build of RHEL5. This was possible because the v1 code had no concept of a generic "base_image". However, this also prevented us from using Oz JEOS caching for RHEL5, which can now consider restoring.

The successful execution of either or both of these steps serves as a strong indication that the base_image build step was successful as it has resulted in an image that can be booted and customized a second time.