Clean up the examples/ directory.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Add more unit tests.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Add a check for an x86_64 install on an i386 host.

This can never work, so ensure it here.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Slight cleanup in oz-install for 80 columns

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Add the ability to generate ICICLE safely

This patch allows users to generate ICICLE while preserving the
pristine content of the original image generated by the native
installer.  This avoids embedding the results of "first boot" type
tasks such as the generation of SSH keys and the initialization of
log files.

This is particularly useful when generating images for cloud targets
using custom install scripts and no customization in the TDL itself.

It works by running the ICICLE step against a temporary qcow2 disk
image which uses the "real" image as a backing store.  All writes
are done to the qcow2 image which is discarded when ICICLE generation
is complete.

This features is a new option in the config file and is disabled
by default.

For the moment it only works with RPM/Anaconda distros but could
likely be extended to support any OS for which ICICLE can be generated.
Fix Ubuntu 12.04.2 amd64 install.

For reasons I don't understand, Ubuntu changed
the name of the kernel on the 12.04.2 amd64
boot CD from vmlinuz to vmlinuz.efi.  Add a
special case for it.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Fix up a bug pointed out by pylint.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Fix a udev / grub problem
See https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/604335
      https://bugs.launchpad.net/ubuntu/+source/grub2/+bug/565146
      http://lists.opensuse.org/opensuse-bugs/2012-04/msg00301.html