Statistics
| Branch: | Tag: | Revision:

root / image_creator / image.py @ f953c647

History | View | Annotate | Download (15.5 kB)

# Date Author Comment
5a33a51f 10/22/2013 12:23 pm Nikos Skalkotos

Rename diagnose to inspect

d0daafa2 10/16/2013 04:46 pm Nikos Skalkotos

Add diagnose() method in OSBase derived classes

This can be used to perform various tests to determine if the media
is supported.

e482b7f9 10/11/2013 06:02 pm Nikos Skalkotos

Allow image creation from unsupported media

Add a new "Unsupported" os_type class. Images that get created from
unsupported media have the EXCLUDE_ALL_TASKS property enabled.

f5634b9a 08/22/2013 04:46 pm Nikos Skalkotos

Use forceall in e2fsck if available

Before shrinking a filesystem use the e2fsck -y if the underlined
guestfs library supports it.

5756c277 08/03/2013 04:05 pm Nikos Skalkotos

Convert check_guestfs_version into an Image method

It used to be a function in util module

bbfcaef1 08/01/2013 12:56 pm Nikos Skalkotos

Workaraound the old behaviour of kill_subprocess

Before libguestfs 1.18.4 you cannot shutdown the backend and then
relaunch it

ec8b2a79 08/01/2013 12:26 pm Nikos Skalkotos

Add {enable, disable}_guestfs methods in image cls

c9d53ee2 07/30/2013 04:43 pm Nikos Skalkotos

Remove bootable options from image class

It has never been used. If we need it in the future, we will bring
it back

0eac0256 07/30/2013 04:43 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.

7c6a4186 07/30/2013 04:43 pm Nikos Skalkotos

Add check_guestfs_version function

This function is used to check if a specified libguestfs version is
smaller, greater or equal to the installed one

797e0df7 07/30/2013 04:43 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

c71133ce 05/21/2013 02:37 pm Nikos Skalkotos

Minor warning message change

29fd973e 05/17/2013 02:04 pm Nikos Skalkotos

Support mounting freebsd ufs filesystems

UFS2 filesystems don't get automatically detected by the linux
kernel. We need to explicitly state the correct filesystem type
and options

80411610 04/25/2013 04:21 pm Nikos Skalkotos

Handle better images with distro="unknown"

If the ostype returned by libguestfs is valid and distro in unknown,
don't print the distro at all.

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

Add missing docstrings

f5174d2c 03/26/2013 06:28 pm Nikos Skalkotos

Rename DiskDevice class to Image

Rename DiskDevice class to Image and move it to a seperate module.
Also, don't let the user access the os_type/* modules directly. In
Image class create the `os' member variable that will host an
appropriate instance of one of the OSBase classes.