Statistics
| Branch: | Tag: | Revision:

root / image_creator @ 710adfb2

# Date Author Comment
710adfb2 06/11/2012 12:12 pm Nikos Skalkotos

Print an extra space when new_line=False

96171db1 06/11/2012 12:02 pm Nikos Skalkotos

Add size param in the Output.Progress constructor

5f27b178 06/11/2012 11:25 am Nikos Skalkotos

Disable recovery proc if libguestfs ver < 1.17.14

In older versions of libguestfs, the recovery process did not close
the file descriptors it inherited. This could case problems if the
parent process had open pipes.

1ea7fc2e 06/07/2012 01:58 pm Nikos Skalkotos

Make progress class contain and Ouput instance

This is handy because now progress class can print using the output
methods of it's output class

574f2712 06/06/2012 03:14 pm Nikos Skalkotos

Fix copyright date in main.py

46544c32 06/06/2012 02:05 pm Nikos Skalkotos

Check if stdout is a tty

If not then don't output progressbars and colors

08f26796 06/06/2012 12:05 pm Nikos Skalkotos

Fix a bug in Output.progress_generator

The progress bar of the progress generator had a wrong max attribute.

e77e66a9 06/05/2012 07:08 pm Nikos Skalkotos

Unify output by creating a seperated output module

All image-creator components now output messages using an instance
of one of the output classes.

5886f568 05/18/2012 07:14 pm Nikos Skalkotos

Remove get_metadata() from os_type classes

The metadata are collected in the constructor and are saved in the
meta variable. This way they can be accessed and altered by the
sysprep methods. There are cases where some metadata are not valid
and need to be updated after a sysprep action is performed. For...

7d3dc857 05/18/2012 05:05 pm Nikos Skalkotos

Add option for passing user-defined image metadata

The metadata passed by the user will overwrite any automatically
collected metadata with the same key.

4a2fd05c 05/16/2012 03:23 pm Nikos Skalkotos

Add remove_swap_entry sysprep in linux

This action will remove the swap entry from the fstab.

e8b1b48b 05/04/2012 06:44 pm Nikos Skalkotos

Remove the swap partition when shrinking

If the swap partition is the last partition in the media, then it can
be safely removed. The image-creator will save enough info in the
SWAP metadata to recreate it.

5b801534 04/29/2012 03:21 pm Nikos Skalkotos

Move get_os_class from image_creator to os_type

This is needed because otherwise setup.py fails on some systems. Also
do some more cleanup.

2a9836b1 04/29/2012 12:56 pm Nikos Skalkotos

Fix a bug introduced in commit e108efd285b34d5a28e

Not all needed code parts where updated when the size() method in
DiskDevice class was abandoned in favor of the size attribute.

e108efd2 04/27/2012 04:52 pm Nikos Skalkotos

Cleanup code in disk module

c0240ac1 04/27/2012 02:57 pm Nikos Skalkotos

Cleanup code & add comments in gpt module

331aa0ec 04/26/2012 07:55 pm Nikos Skalkotos

Add support for GUID Partition Tables

143e9484 04/25/2012 06:34 pm Nikos Skalkotos

Add new line in metadata and md5sum string

3a5454e8 04/24/2012 05:40 pm Nikos Skalkotos

Unify the output of progress bars

b1aea98e 04/24/2012 03:54 pm Nikos Skalkotos

Minor cleanup (typos, comments, etc)

42ace959 04/24/2012 12:45 pm Nikos Skalkotos

Switch to ansicolor for coloring & fix pep8 errors

b1395967 04/23/2012 06:53 pm Nikos Skalkotos

Use progress for progress bar & implement register

6152a559 04/20/2012 05:44 pm Nikos Skalkotos

Fix pep8 errors

8e3065a0 04/20/2012 05:38 pm Nikos Skalkotos

Add progress bar in pithos upload & compute md5sum

e22aa3a9 04/20/2012 11:29 am Nikos Skalkotos

Seperate snapshoting from get_device in Disk class

997ac76a 04/19/2012 07:39 pm Nikos Skalkotos

Fix image upload

Also rearrange input options

50273553 04/19/2012 04:05 pm Nikos Skalkotos

Improve help msg for remove-user-accounts sysprep

b5430a9f 04/19/2012 04:01 pm Nikos Skalkotos

Make -u and -r input options require an argument

6f319b6a 04/19/2012 03:58 pm Nikos Skalkotos

Fix typos in var names

40e7a487 04/11/2012 05:25 pm Nikos Skalkotos

Add a wrapper module for kamaki

This is just a template. Not fully workable

f165adc0 04/10/2012 04:38 pm Nikos Skalkotos

Add options for enabling/disabling sysprep tasks

Also merge data_cleanup tasks with syspreps and did a major cleanup

76d4a1c9 04/09/2012 03:09 pm Nikos Skalkotos

Add options for printing sysprep and data cleanup

Add --print-data-cleanup and --print sysprep input options. If enabled
the program will output what data cleanup and syspep operations will
and won't run a a selected input media

4cab6d62 04/09/2012 03:08 pm Nikos Skalkotos

Fix pep8 error

a9c9d939 04/06/2012 06:08 pm Nikos Skalkotos

Add cleanup method that removes user accounts

This method will remove all users that have id over 1000. In most
systems this will remove all normal user accounts besides the first
one. This method will not run by default.

51fab9c9 04/05/2012 05:36 pm Nikos Skalkotos

Add cleanup method that locks all user accounts

0144d7c7 04/05/2012 04:26 pm Nikos Skalkotos

Add exclude_task decorator in os_type

This can be used to create a set of by default disabled data_cleanup
and sysprep tasks.

979096dd 03/24/2012 02:54 pm Nikos Skalkotos

Add silent mode option

All printing had to be reordered and now it is done from a central point.

fc54978e 03/24/2012 10:50 am Nikos Skalkotos

Add a new line the end of the acpid action script

39cfd61a 03/24/2012 10:40 am Nikos Skalkotos

Capitalize all image metadata keys

69aa33fa 03/24/2012 10:31 am Nikos Skalkotos

Fix cli options help messages

d603d80d 03/23/2012 07:16 pm Nikos Skalkotos

Move image_extract method into DiskDevice

d144e954 03/21/2012 08:46 pm Nikos Skalkotos

Fix sysprep_acpid method in linux.

Commit 3f70f24 introduced a bug where the event file was overwritten
instead of the action file.

13675429 03/21/2012 08:35 pm Nikos Skalkotos

Correct image size computation

This commit fixes a bug where size method in DiskDevice returned the
payload size of the device one byte shorter than it actually was.

3f70f242 03/21/2012 08:14 pm Nikos Skalkotos

Fix linux sysprep_acpid & remove output indents

e2cf65d3 03/20/2012 07:08 pm Nikos Skalkotos

Add new-line printing option in printing functions

22a6d232 03/20/2012 06:04 pm Nikos Skalkotos

Beautify program's output.

ae48a082 03/19/2012 12:26 pm Nikos Skalkotos

Fix license, copyright and pep8 infractions

c54fc0e8 03/16/2012 07:21 pm Nikos Skalkotos

Fix wrong variable name in progress_callback

0ae01e26 03/16/2012 06:14 pm Nikos Skalkotos

Create an exception based error reporting system

All modules should use image_creator.FatalError exception to report
fatal errors.

3d083be5 03/16/2012 05:36 pm Nikos Skalkotos

Fix a bug in linux sysprep_* methods

The parameter order when calling guestfs.write was incorrect.

0db22eac 03/16/2012 05:26 pm Nikos Skalkotos

Split DiskDevice constructor in 2 parts

In the constructor only variable initialization is performed. This is
needed because the constructor is executed before the DiskDevice
instance is appended to the device list, and if something fails there,
then the resources may be cleaned up in an incorrect order.

f8119e65 03/13/2012 06:09 pm Nikos Skalkotos

Extend data_cleanup method in unix

  • Add more userdata to be cleaned
  • Prefix all data_cleanup methods with data_cleanup
9cbb5794 03/13/2012 05:48 pm Nikos Skalkotos

Add sysprep method in os_type classes.

This is used to prepare the media for image extraction. The main
difference from data_cleanup is that the tasks performed with this
method are mandatory in order to make the image workable.

Added the following sysprep methods for linux:...

c16922f7 03/13/2012 12:23 pm Nikos Skalkotos

Add cleanup_cache function in unix

This function will remove regular files under /var/cache

feab499d 03/13/2012 12:17 pm Nikos Skalkotos

Add remove_persistent_net method in linux.

This will remove the persitent net udev rule.

a83f5185 03/12/2012 07:01 pm Nikos Skalkotos

Add convert_to_persistent_dev method in Linux

This method replaces all non-persistent device appearances in fstab and
grub1 with UUIDs.

9297c398 03/11/2012 10:51 pm Nikos Skalkotos

Add mail and /var/tmp cleanup for unix systems

3ccb2618 03/09/2012 05:26 pm Nikos Skalkotos

Remove python-losetup dependency

The package is buggy and we can use pbs to do the same thing.

e7c01d1e 03/08/2012 06:51 pm Nikos Skalkotos

Add an extra yield in progress_generator

This is needed to suppress the StopIteration exception

586da0a0 03/08/2012 05:32 pm Nikos Skalkotos

Add progress bar for the guestfs launch method

1a3f1298 03/08/2012 05:30 pm Nikos Skalkotos

Add options for image upload/register with kamaki

Not workable. Kamaki is not imported yet.

01a7cff3 03/07/2012 05:45 pm Nikos Skalkotos

Handle imported commands that aren't in the PATH

This fixes cases where a normal user tries to execute the program and
the program raises pbs.CommandNotFound exceptions because it tries to
import a command from sbin, which is not in the path.

36e348b6 03/05/2012 04:13 pm Nikos Skalkotos

Fix a bug in get_passworded_users

c408053f 02/29/2012 07:47 pm Nikos Skalkotos

Add input options and populate image metadata

Hooray! This is the first release that actually works!

a1a5ca4b 02/29/2012 02:27 pm Nikos Skalkotos

Fix minor typos

3b2f6619 02/28/2012 10:12 pm Nikos Skalkotos

Document basic classes and methods

486ea6e0 02/28/2012 06:32 pm Nikos Skalkotos

Detect Kubuntu images

This is done checking an Ubuntu image for the presence of
kubuntu-desktop package.

e3aac3f9 02/28/2012 06:26 pm Nikos Skalkotos

Make DiskDevice.shrink() return the new disk size

8c574358 02/24/2012 03:29 pm Nikos Skalkotos

Major code revision

  • Add foreach_file function in OSBase. This is used by all cleanup
    methods
  • Add slackware class. This class derives from linux and overwrites the
    log cleanup behaviour. This is needed since slackware stores all
    package management info in /var/log/packages...
0d5a999d 02/22/2012 06:22 pm Nikos Skalkotos

Fix code for cleanup of image data

aa2062ba 02/20/2012 07:59 pm Nikos Skalkotos

Add OS specific classes

1377b8a7 02/17/2012 08:30 pm Nikos Skalkotos

Use libguestfs to access the image

333ff548 02/17/2012 11:49 am Nikos Skalkotos

Further development

Make the cow file sparse
Add method in Device to list the partitions
Add a "is bootable" flag in Device constructor

d57775d4 02/15/2012 07:19 pm Nikos Skalkotos

Initial commit