Commit 79dff39e by KATOH Yasufumi

doc: add copy hook explanation to Japanese lxc-copy(1)

Update for commit cc0607a9Signed-off-by: 's avatarKATOH Yasufumi <karma@jazz.email.ne.jp>
parent dfc76168
...@@ -64,6 +64,7 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp> ...@@ -64,6 +64,7 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
<arg choice="opt">-K, --keepdata</arg> <arg choice="opt">-K, --keepdata</arg>
<arg choice="opt">-M, --keepmac</arg> <arg choice="opt">-M, --keepmac</arg>
<arg choice="opt">-L, --fssize <replaceable>size [unit]</replaceable></arg> <arg choice="opt">-L, --fssize <replaceable>size [unit]</replaceable></arg>
<arg choice="opt">-- hook arguments</arg>
</cmdsynopsis> </cmdsynopsis>
<cmdsynopsis> <cmdsynopsis>
<command>lxc-copy</command> <command>lxc-copy</command>
...@@ -77,6 +78,7 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp> ...@@ -77,6 +78,7 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
<arg choice="opt">-K, --keepdata</arg> <arg choice="opt">-K, --keepdata</arg>
<arg choice="opt">-M, --keepmac</arg> <arg choice="opt">-M, --keepmac</arg>
<arg choice="opt">-L, --fssize <replaceable>size [unit]</replaceable></arg> <arg choice="opt">-L, --fssize <replaceable>size [unit]</replaceable></arg>
<arg choice="opt">-- hook arguments</arg>
</cmdsynopsis> </cmdsynopsis>
<cmdsynopsis> <cmdsynopsis>
<command>lxc-copy</command> <command>lxc-copy</command>
...@@ -316,6 +318,32 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp> ...@@ -316,6 +318,32 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
</refsect1> </refsect1>
<refsect1>
<title><!-- Copy hook -->コピー時のフック</title>
<para>
<!--
If the container being copied has one or more
<filename>lxc.hook.clone</filename> 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 <command>lxc-copy</command> will
be passed to the hook program starting at argument 4. The
<filename>LXC_ROOTFS_MOUNT</filename> environment variable gives
the path under which the container's root filesystem is mounted. The
configuration file pathname is stored in
<filename>LXC_CONFIG_FILE</filename>, the new container name in
<filename>LXC_NAME</filename>, the old container name in
<filename>LXC_SRC_NAME</filename>, and the path or device on which the
rootfs is located is in <filename>LXC_ROOTFS_PATH</filename>.
-->
コピーされるコンテナに 1 つ以上の <filename>lxc.hook.clone</filename> の指定が存在する場合、指定されたフックは新しいコンテナに対して呼ばれます。
クローンフックに渡される最初の 3 つの引数は、コンテナ名、セクション ('lxc')、フックタイプ ('clone') となります。
<command>lxc-copy</command> に渡される追加の引数は、フックプログラムに渡される引数の 4 番目以降となります。
<filename>LXC_ROOTFS_MOUNT</filename> 環境変数には、コンテナの root ファイルシステムがマウントされるパスが与えられます。
設定ファイルのパス名は <filename>LXC_CONFIG_FILE</filename> に、新しいコンテナ名は <filename>LXC_NAME</filename>、古いコンテナ名は <filename>LXC_SRC_NAME</filename> に、rootfs のあるパスまたはデバイスは <filename>LXC_ROOTFS_PATH</filename> に保存されます。
</para>
</refsect1>
&commonoptions; &commonoptions;
&seealso; &seealso;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment