Reduce the Fedora and RHEL package sets.

This just strips them down a tad bit more, so that they
install slightly smaller package sets.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Add Fedora 18 support

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Switch over to pycurl for header information

This requires a bit more work, but gets us support for
more formats (http://username:password@url), and keeps us
using a single library for this

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Switch screenshot mechanism to using libvirt screenshots.

This gets rid of an annoying external dependency, and
makes for some simpler code.  Unfortunately I was not able
to get it to work on a Fedora-14 host with libvirt 0.9.6,
but I have not investigated the causes.

Signed-off-by: Chris Lalancette <clalance@redhat.com>
Fix Fedora-18 ISO install.

It needs the same workaround on the kernel command-line
that Fedora-17 does.  Original patch by Geert Jansen.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Loosen the check for RHEL-6 update numbers.

We have never had a case where a RHEL minor update has
broken the installer.  Thus, we can afford to accept any
version number within a major RHEL version.  This will make
it so that we don't have to release a new version of Oz
for every minor RHEL/CentOS update

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Cleanup the screenshot directory in cleanup_cache

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Quote apt-add-repository arguments to allow for non-ppa inputs

This allows for `deb http://example.com foo main` type of input. apt-add-repository requires it to be quoted. A PPA input can also be quoted without problems.
The commit allows people to add the `deb` bit to the TDL without having to add in the extra quotes around it in there.

Note: This would break things for people that have already used quotes in their TDL - That's why the strip() call is there

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
In Ubuntu 12.10 apt-add-repository got moved to software-properties-common

See https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1021418 for information

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Fix up a typo from the apt-add-repository commit

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Consolidate a lot of redundant backup/restore code.

This code is mostly used for doing manipulation on the
image during customization pre- and post-.  There was a
lot of duplication there, so this patch consolidates that
into a couple of functions, and then replaces the redundancy
with those functions.  This gets rid of a lot of error-prone
code.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Make sure to delete ssh keys after customization.

Otherwise, cached images could end up with the same keys.
Problem pointed out by Geert Jansen.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>