Statistics
| Branch: | Tag: | Revision:

root / image_creator / os_type / linux.py @ 06bfd21a

History | View | Annotate | Download (12.1 kB)

# Date Author Comment
173022fb 07/07/2013 04:16 pm Nikos Skalkotos

Add the sysprep message printing in the decorator

Since all sysprep functions output a message when they get executed,
add the message printing functionality to the sysprep decorator

d415dda2 07/03/2013 04:28 pm Nikos Skalkotos

Add support for sysprep-parameters

The user may define parameters needed by the os_type classes to perform
the system preparation tasks.

A new needed_sysprep_params method is added to os_type.OSBase that
returns a list with parameters that should be defined by the user.

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

2dcd42b7 04/25/2013 01:49 pm Nikos Skalkotos

Move linux specific code from unix.py to linux.py

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.

c0f3abdc 08/29/2012 12:07 pm Nikos Skalkotos

Fix fix_acpid syspep

Extend the mechanism to recognise events with value "button/power.*"
as power button events. It used to only check for events with value
"button[ /]power".

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

Fix pep8 errors

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

e55f4b3c 06/25/2012 04:04 pm Nikos Skalkotos

Fix a warning message in linux fix_acpid sysprep

20409e9f 06/25/2012 02:39 pm Nikos Skalkotos

Use vfs_uuid instead of blkid to compute uuid

vfs_uuid is more suitable for this and it whas added before blkid
in guestfs, hence it is supported in more guestfs versions.

755e1885 06/20/2012 06:30 pm Nikos Skalkotos

In linux.py make sysprep names for descriptive

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.

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.

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

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

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.

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

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.

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

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.

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...
aa2062ba 02/20/2012 07:59 pm Nikos Skalkotos

Add OS specific classes