Statistics
| Branch: | Tag: | Revision:

root / image_creator / bundle_volume.py @ 12c97404

History | View | Annotate | Download (19.9 kB)

# Date Author Comment
b6765b7e 06/25/2013 06:25 pm Nikos Skalkotos

Always close fds returned by tempfile.mkstemp()

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
35b13de5 05/20/2013 10:39 am Nikos Skalkotos

Fix minor pep8 errors

81a63274 05/01/2013 08:02 pm Nikos Skalkotos

Add acl & user_xattr mount options if needed

In bundling host make sure that the default mount options are enabled
in the newly created file system.

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

Add missing docstrings

61d14323 03/22/2013 02:57 pm Nikos Skalkotos

Clean-up the code using flake8

dd22ce7b 03/21/2013 03:44 pm Nikos Skalkotos

Fix a bug in the way rsync copies files

The exclude patterns were wrong and they excluded more files than
they should.

41bf4a8f 03/19/2013 08:03 pm Nikos Skalkotos

Fix a bug in bundle host

In the bundled image /tmp and /var/tmp file mode bits ended up being
wrong.

37d581b8 03/18/2013 12:13 am Nikos Skalkotos

Support private images

Support images that can only be deployed by the user that registers
the image to cyclades

bc9d122f 03/13/2013 02:46 pm Nikos Skalkotos

Fix small typo

c631f3e4 01/29/2013 06:33 pm Nikos Skalkotos

In bundle_volume keep partition starting points

When shrinking partitions, make sure that the shrinked partitions
always starts from the sector the initial partition started. Changing
this may destroy the boot loader.

10a5c2bf 01/29/2013 04:00 pm Nikos Skalkotos

In bundle_volume print msg when cloning partitions

b0376b3f 01/29/2013 03:27 pm Nikos Skalkotos

Add support for gpt partitions in bundle_volume

eb07a85f 01/27/2013 08:06 pm Nikos Skalkotos

Don't call parted.Device.destroy()

It behaves different in different pyparted versions and only causes
problems. Let python do the garbage-collection...

29274f83 01/26/2013 03:57 pm Nikos Skalkotos

Ommit using os.path.relpath

The method has different behaviour in python 2.6 and python 2.7.
In python 2.6, os.path.relpath('/proc', '/) will output '../proc'
where in python 2.7 it will output 'proc'.

e62eb365 01/26/2013 03:50 pm Nikos Skalkotos

Support pyparted 3.4

Use length instead of getLength() to get the size in sectors of a
device.

252b2b5d 01/18/2013 09:20 pm Nikos Skalkotos

Completely exclude mpoints when running rsync

We used to exclude mount point from rsync with options like this:

--exclude mount/point/*

This will copy the directory and leave out all files under it. In
some cases, this causes problems because rsync will fail if it...

1294501a 01/11/2013 02:17 pm Nikos Skalkotos

Fix bug introdueced in f2ddf4db58fc537e66d60739d2a

f2ddf4db 01/10/2013 07:25 pm Nikos Skalkotos

Fix minor issues in output messages

c16850ae 01/10/2013 07:11 pm Nikos Skalkotos

Allow users to specify tmp dir for large files

The cow file when creating images or the temporary image file when
bundling the host system may be large. Allow the user to overwrite
the directory under which those files get created.

4a35faa5 01/04/2013 07:26 pm Nikos Skalkotos

Fix minor typos

fa39c7e3 01/04/2013 02:06 pm Nikos Skalkotos

Truncate the image before fs creation

63e1b902 01/04/2013 01:17 pm Nikos Skalkotos

In rsync make src and dest labels configurable

1fa75c4c 01/03/2013 02:34 pm Nikos Skalkotos

Cleanup Rsync class and add extra options

Add options for preserving extended atrributes, hard links, ACLs.

6228d45e 12/31/2012 02:57 pm Nikos Skalkotos

Fix pep8 errors

d15368cc 12/31/2012 03:05 am Nikos Skalkotos

Fix bugs in rsync module

  • Fix a bug where the parent process did not wait on the child
    processes.
  • Make sure that when updating the copy progress bar, at least
    0.1 seconds have passed. This guarantees that we do not experience
    any flickering in the progress bar.
f3845095 12/31/2012 01:22 am Nikos Skalkotos

Retry cleanup commands if they fail

Add a new try_fail_repeat function that wraps cleanup system commands
and retries them if they fail. There are cases where commands like
dmsetup, umount and losetup -d may fail with device is busy. In most
of the cases, sleeping for halve a second and retrying does the job.

567891a6 12/30/2012 11:14 pm Nikos Skalkotos

Make sure the tmp bunble_volume img gets deleted

83fe59dd 12/29/2012 06:33 pm Nikos Skalkotos

In bundle_volume truncate img file after shrinking

bf15a033 12/28/2012 02:55 am Nikos Skalkotos

In bundle_volume replace UUIDs in new filesystems

Replace the UUID entries in fstab and grub files for filesystems that
have beeen recreated.

e6f134b3 12/24/2012 02:23 pm Nikos Skalkotos

Fix a bug in rsync

The exclude patterns should contain relative to the source paths

74149d07 12/23/2012 09:12 pm Nikos Skalkotos

In bundle volume copy host files with rsync

25b4d858 12/20/2012 08:16 pm Nikos Skalkotos

Create fs in image partitions in bundle_volume

Also do a code cleanup

a939e3b8 12/19/2012 07:04 pm Nikos Skalkotos

Fix bugs in bundle_volume module

The partition table of the image is created correct. The partitions
are not yet filled.

8eea5572 12/19/2012 04:22 pm Nikos Skalkotos

Further development in bundle_volume

Nothing is working yet

f911ff16 12/14/2012 07:20 pm Alex Pyrgiotis

Fix errors introduced in 9517bf29dadbb4f1257f240bc

9517bf29 12/13/2012 07:01 pm Nikos Skalkotos

Fix the image partitions in bundle_volume

Check the file system usage and accordingly reduce the size of the
last partition in the image.

27a4229d 12/11/2012 04:43 pm Nikos Skalkotos

Futher development for bundle_volume

Create a sparse file under /mnt in the size of the root hard disk
and copy the mbr into this file. Not yet workable.

9e4b4de2 11/21/2012 04:14 pm Nikos Skalkotos

Add new bundle_volume module

This is not yet workable but it will host the code for creating
images out of a running system.