diff --git a/doc/lxc-copy.sgml.in b/doc/lxc-copy.sgml.in index 34ebcc5c5..5b437a730 100644 --- a/doc/lxc-copy.sgml.in +++ b/doc/lxc-copy.sgml.in @@ -58,6 +58,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -K, --keepdata -M, --keepmac -L, --fssize size [unit] + -- hook arguments lxc-copy @@ -71,6 +72,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA -K, --keepdata -M, --keepmac -L, --fssize size [unit] + -- hook arguments lxc-copy @@ -262,6 +264,25 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + + Copy hook + + If the container being copied has one or more + lxc.hook.clone specified, then the specified hooks + will be called for the new container. The first 3 arguments passed to the + clone hook will be the container name, a section ('lxc'), and the hook + type ('clone'). Extra arguments passed to lxc-copy will + be passed to the hook program starting at argument 4. The + LXC_ROOTFS_MOUNT environment variable gives + the path under which the container's root filesystem is mounted. The + configuration file pathname is stored in + LXC_CONFIG_FILE, the new container name in + LXC_NAME, the old container name in + LXC_SRC_NAME, and the path or device on which the + rootfs is located is in LXC_ROOTFS_PATH. + + + &commonoptions; &seealso;