Statistics
| Branch: | Tag: | Revision:

root / image_creator / os_type / __init__.py @ c50c5ae7

History | View | Annotate | Download (9.7 kB)

# Date Author Comment
0c505946 06/28/2013 04:14 pm Nikos Skalkotos

Pass the Image instance to the os_type classes

Those classes may need to access more Image data than the guestfs
handler and the root device name

121f3bc0 06/11/2013 05:41 pm Nikos Skalkotos

Code Cleanup

  • Prefix all private methods with _
  • Write missing docstrings
  • Move all public methods above the private ones
  • Add module docstrings where missing
  • Define source code encodings on all modules
71b0ab28 06/07/2013 03:24 pm Nikos Skalkotos

Move mount/umount from image to os_type module

fa65eda1 05/23/2013 04:52 pm Nikos Skalkotos

Monitor executed syspreps in os_type/__init__.py

Syspreps that have already been executed shouldn't get returned by
list_syspreps

d8a12a7e 05/21/2013 05:08 pm Nikos Skalkotos

Copy OSFAMILY to OS property if distro is unknown

If libguestfs's inspect_get_distro returns "unknown", then use the
OSFAMILY image property value as OS value.

88f83027 03/28/2013 02:26 pm Nikos Skalkotos

Add missing docstrings

dcf9274b 09/01/2012 06:29 pm Vangelis Koukis

Fix various typos, add .gitignore file

Fix various typos in messages, add .gitignore file for
automatically produced intermediate files.

f99fe99d 06/28/2012 01:20 am Nikos Skalkotos

Fix pep8 errors

Fixed many `E127 continuation line over-indented for visual indent'
errors

e7cbfb0a 06/21/2012 06:10 pm Nikos Skalkotos

Add get_sysprep_by_name method in os_type classes

This method returns a sysprep object with a given name. Now,
(enable,disable)_sysprep work with sysprep objects instead of sysprep
names

f8cccab5 06/21/2012 02:13 am Nikos Skalkotos

Fix a bug introduced in 2e50092b2437913561a37c646e

The do_sysprep method was not updated to comply with the changes
made in list_syspreps method

12078c7e 06/20/2012 04:28 pm Nikos Skalkotos

Add sysprep_info method in os_type classes

This method takes a sysprep object as argument and returns the name
and a description for this object.

2e50092b 06/20/2012 03:17 pm Nikos Skalkotos

Make os_type list_sysprep method return 1 list

The method used to return 2 lists of enabled and disabled sysprep
object. Since sysprep objs contail an `enabled' attribute, it is easy
to determine which of those are enabled and which are not. There is
no need to return 2 seperate lists.

bb4db5a8 06/14/2012 11:37 am Nikos Skalkotos

Fix a bug introduced in 4e58b51b

The error function main.py used for outputing errors has been removed
and the code was not updated to use the error method of SimpleOutput
output class.
Also did a minor cleanup: git_os_class function was renamed to os_cls

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...

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.

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.

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

Fix typos in var names

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

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.

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

Capitalize all image metadata keys

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

Fix linux sysprep_acpid & remove output indents

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

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:...

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.

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