Utility methods to resize, repartition, and modify disk images.
Includes injection of SSH PGP keys into authorized_keys file.
Bind device to a filesytem
Destroy the container once it terminates.
It will umount the container that is mounted, and delete any linked devices.
Increase image to size
Injects a ssh key and optionally net data into a disk image.
it will mount the image as a fully partitioned disk and attempt to inject into the specified partition number.
If partition is not specified it mounts the image as a single partition.
Injects data into a filesystem already mounted by the caller. Virt connections can call this directly if they mount their fs in a different way to inject_data
Injects arbitrary files into a disk image
Setup the LXC container.
It will mount the loopback image to the container directory in order to create the root filesystem for the container.