Remove self.data, since we aren't using the data anywhere

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Slight update to the wording of the -i option

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Fix "hyphen-used-as-minus-sign" and misspelling

Fix from Hideki Yamane.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Remove the logo, since it was never used for anything

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Increase the shutdown timeout to 90 seconds

From Geert Jansen:

"When building images with QEmu using emulation,
I run dangerously close to the shutdown timeout
of 60 seconds. The patch below increases it to
120 seconds."

I modified it to be 90, since a shutdown failure is
not fatal.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Make sure Ubuntu 12.04.1 can find its preseed file

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Update the default screenshot dir to be /var/lib/oz/screenshots

This closes out github issue #19.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
Add support for RHEL-5.9

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
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>