]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
doc: add copy hook explanation to Korean lxc-copy(1)
authorSungbae Yoo <sungbae.yoo@samsung.com>
Fri, 4 Mar 2016 02:25:16 +0000 (11:25 +0900)
committerSungbae Yoo <sungbae.yoo@samsung.com>
Fri, 4 Mar 2016 02:28:27 +0000 (11:28 +0900)
Update for commit cc0607a

Signed-off-by: Sungbae Yoo <sungbae.yoo@samsung.com>
doc/ko/lxc-copy.sgml.in
doc/ko/lxc.container.conf.sgml.in

index d0ed1fe0e854776f8096d263e07eda4d9cc6502c..25f421d36d2453bf15b4720d2dfc794f8d621b09 100644 (file)
@@ -64,6 +64,7 @@ by Sungbae Yoo <sungbae.yoo at samsung.com>
       <arg choice="opt">-K, --keepdata</arg>
       <arg choice="opt">-M, --keepmac</arg>
       <arg choice="opt">-L, --fssize <replaceable>size [unit]</replaceable></arg>
+      <arg choice="opt">-- hook arguments</arg>
     </cmdsynopsis>
     <cmdsynopsis>
       <command>lxc-copy</command>
@@ -77,6 +78,7 @@ by Sungbae Yoo <sungbae.yoo at samsung.com>
       <arg choice="opt">-K, --keepdata</arg>
       <arg choice="opt">-M, --keepmac</arg>
       <arg choice="opt">-L, --fssize <replaceable>size [unit]</replaceable></arg>
+      <arg choice="opt">-- hook arguments</arg>
     </cmdsynopsis>
     <cmdsynopsis>
       <command>lxc-copy</command>
@@ -335,6 +337,32 @@ by Sungbae Yoo <sungbae.yoo at samsung.com>
 
   </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>.
+      -->
+      복사되는 컨테이너에 <filename>lxc.hook.clone</filename>가 하나 이상 지정되어 있다면, 지정한 훅들은 새로운 컨테이너를 위해 실핼될 것이다.
+      clone 훅에게 넘겨지는 처음 3개 인자들은 컨테이너 이름, 섹션 ('lxc'), 훅의 종류 ('clone')이 될 것이다.
+      <command>lxc-copy</command>에 넘겨지는 추가 인자들은 훅 프로그램에 4번째 인자부터 넘겨지기 시작한다.
+      <filename>LXC_ROOTFS_MOUNT</filename> 환경 변수는 컨테이너의 루트 파일시스템이 마운트되어 있는 경로를 담고 있다.
+      설정 파일의 경로 이름은 <filename>LXC_CONFIG_FILE</filename>에, 새 컨테이너의 이름은 <filename>LXC_NAME</filename>에, 원본 컨테이너의 이름은 <filename>LXC_SRC_NAME</filename>에, 그리고 루트 파일시스템이 위치하고 있는 경로나 디바이스는 <filename>LXC_ROOTFS_PATH</filename>에 각각 담겨 있다.
+    </para>
+  </refsect1>
+
   &commonoptions;
 
   &seealso;
index 7ea67c04b7b0ef405433630cf24ce8f635b4d2e3..cb0bc271659206a53c216d982ba1d24a40223b67 100644 (file)
@@ -1480,11 +1480,12 @@ proc proc proc nodev,noexec,nosuid 0 0
              syscall.  Any directory suffices, the default should
              generally work.
               -->
-              루트파일시스템을 변경하기 전에, <option>lxc.rootfs</option>을 어디에 재귀적으로 바인드할지 정한다. 이는 다음 시스템콜의 성공을 보장한다.
+              루트 파일시스템을 변경하기 전에, <option>lxc.rootfs</option>을 어디에 재귀적으로 바인드할지 정한다. 이는 
              <citerefentry>
                <refentrytitle><command>pivot_root</command></refentrytitle>
                <manvolnum>8</manvolnum>
-             </citerefentry>
+             </citerefentry> 
+              시스템 콜의 성공을 보장한다.
               어떤 디렉토리도 좋으며, 기본값으로도 보통 동작할 것이다.
            </para>
          </listitem>
@@ -1869,7 +1870,7 @@ mknod errno 0
          <listitem><para> LXC_ROOTFS_MOUNT: 마운트될 루트 파일시스템의 경로</para></listitem>
          <listitem><para> LXC_CONFIG_FILE: 컨테이너 설정파일의 경로</para></listitem>
          <listitem><para> LXC_SRC_NAME: clone 훅의 경우, 원본 컨테이너의 이름</para></listitem>
-         <listitem><para> LXC_ROOTFS_PATH: 컨테이너의 lxc.rootfs 항목. 이 것은 마운트된 루트 파일시스템을 나타내지 않음에 주의해야한다. 그 목적을 위해서는  LXC_ROOTFS_MOUNT를 사용해야 한다.</para></listitem>
+         <listitem><para> LXC_ROOTFS_PATH: 컨테이너의 lxc.rootfs 항목. 이 것은 마운트된 루트 파일시스템을 가리키는 것이 아님에 주의해야한다. 그 목적을 위해서는  LXC_ROOTFS_MOUNT를 사용해야 한다.</para></listitem>
         </itemizedlist>
       </para>
       <para>