History | View | Annotate | Download (19.9 kB)
Always close fds returned by tempfile.mkstemp()
Code Cleanup
Fix minor pep8 errors
Add acl & user_xattr mount options if needed
In bundling host make sure that the default mount options are enabledin the newly created file system.
Add missing docstrings
Clean-up the code using flake8
Fix a bug in the way rsync copies files
The exclude patterns were wrong and they excluded more files thanthey should.
Fix a bug in bundle host
In the bundled image /tmp and /var/tmp file mode bits ended up beingwrong.
Support private images
Support images that can only be deployed by the user that registersthe image to cyclades
Fix small typo
In bundle_volume keep partition starting points
When shrinking partitions, make sure that the shrinked partitionsalways starts from the sector the initial partition started. Changingthis may destroy the boot loader.
In bundle_volume print msg when cloning partitions
Add support for gpt partitions in bundle_volume
Don't call parted.Device.destroy()
It behaves different in different pyparted versions and only causesproblems. Let python do the garbage-collection...
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'.
Support pyparted 3.4
Use length instead of getLength() to get the size in sectors of adevice.
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. Insome cases, this causes problems because rsync will fail if it...
Fix bug introdueced in f2ddf4db58fc537e66d60739d2a
Fix minor issues in output messages
Allow users to specify tmp dir for large files
The cow file when creating images or the temporary image file whenbundling the host system may be large. Allow the user to overwritethe directory under which those files get created.
Fix minor typos
Truncate the image before fs creation
In rsync make src and dest labels configurable
Cleanup Rsync class and add extra options
Add options for preserving extended atrributes, hard links, ACLs.
Fix pep8 errors
Fix bugs in rsync module
Retry cleanup commands if they fail
Add a new try_fail_repeat function that wraps cleanup system commandsand retries them if they fail. There are cases where commands likedmsetup, umount and losetup -d may fail with device is busy. In mostof the cases, sleeping for halve a second and retrying does the job.
Make sure the tmp bunble_volume img gets deleted
In bundle_volume truncate img file after shrinking
In bundle_volume replace UUIDs in new filesystems
Replace the UUID entries in fstab and grub files for filesystems thathave beeen recreated.
Fix a bug in rsync
The exclude patterns should contain relative to the source paths
In bundle volume copy host files with rsync
Create fs in image partitions in bundle_volume
Also do a code cleanup
Fix bugs in bundle_volume module
The partition table of the image is created correct. The partitionsare not yet filled.
Further development in bundle_volume
Nothing is working yet
Fix errors introduced in 9517bf29dadbb4f1257f240bc
Fix the image partitions in bundle_volume
Check the file system usage and accordingly reduce the size of thelast partition in the image.
Futher development for bundle_volume
Create a sparse file under /mnt in the size of the root hard diskand copy the mbr into this file. Not yet workable.
Add new bundle_volume module
This is not yet workable but it will host the code for creatingimages out of a running system.