Statistics
| Branch: | Tag: | Revision:

root / image_creator / disk.py @ 09ed3d46

History | View | Annotate | Download (16.5 kB)

# Date Author Comment
835171dc 06/28/2012 01:50 pm Nikos Skalkotos

Fix minor typos

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

Fix pep8 errors

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

9666a511 06/27/2012 05:42 pm Nikos Skalkotos

Leave 2048 sectors space at the end when shrinking

Most partition manipulation programs leave 2048 sector empty space
after the last partition.

279f2c7d 06/26/2012 04:35 pm Nikos Skalkotos

Fix error message for non supported media source

550d4a49 06/14/2012 05:46 pm Nikos Skalkotos

Allow readonly mount in DiskDevice class

Add an option to DiskDevice's mount method to allow readonly mount

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.

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.

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

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

Add support for GUID Partition Tables

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

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

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

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.

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

Move image_extract method into DiskDevice

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

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.

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.

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

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.

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

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