mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-07-09 09:25:01 +00:00
increase /dev size to 500k ( issue #781)
Signed-off-by: Min Wang <mingewang@gmail.com>
This commit is contained in:
parent
b9f6d3f088
commit
c35d29097c
@ -1007,7 +1007,7 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
|
|||||||
<filename>/dev</filename> to be set up as needed in the container
|
<filename>/dev</filename> to be set up as needed in the container
|
||||||
rootfs. If lxc.autodev is set to 1, then after mounting the container's
|
rootfs. If lxc.autodev is set to 1, then after mounting the container's
|
||||||
rootfs LXC will mount a fresh tmpfs under <filename>/dev</filename>
|
rootfs LXC will mount a fresh tmpfs under <filename>/dev</filename>
|
||||||
(limited to 100k) and fill in a minimal set of initial devices.
|
(limited to 500k) and fill in a minimal set of initial devices.
|
||||||
This is generally required when starting a container containing
|
This is generally required when starting a container containing
|
||||||
a "systemd" based "init" but may be optional at other times. Additional
|
a "systemd" based "init" but may be optional at other times. Additional
|
||||||
devices in the containers /dev directory may be created through the
|
devices in the containers /dev directory may be created through the
|
||||||
@ -1015,7 +1015,7 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
|
|||||||
-->
|
-->
|
||||||
デフォルトでは、lxc はコンテナの <filename>/dev</filename> 以下に fd, stdin, stdout, stderr のシンボリックリンクを作成しますが、自動的にはデバイスノードのエントリは作成しません。
|
デフォルトでは、lxc はコンテナの <filename>/dev</filename> 以下に fd, stdin, stdout, stderr のシンボリックリンクを作成しますが、自動的にはデバイスノードのエントリは作成しません。
|
||||||
これは、コンテナの rootfs で必要な設定を行えるようにするものです。
|
これは、コンテナの rootfs で必要な設定を行えるようにするものです。
|
||||||
lxc.autodev が 1 に設定されている場合、コンテナの rootfs をマウントした後、LXC は新しい tmpfs を <filename>/dev</filename> 以下にマウントします (100k 制限の)。
|
lxc.autodev が 1 に設定されている場合、コンテナの rootfs をマウントした後、LXC は新しい tmpfs を <filename>/dev</filename> 以下にマウントします (500k 制限の)。
|
||||||
そして初期デバイスの最小限のセットを作成します。
|
そして初期デバイスの最小限のセットを作成します。
|
||||||
これは、"systemd" ベースの "init" 環境のコンテナを起動する時に通常必要ですが、他の環境の場合はオプショナルなものです。
|
これは、"systemd" ベースの "init" 環境のコンテナを起動する時に通常必要ですが、他の環境の場合はオプショナルなものです。
|
||||||
コンテナの /dev ディレクトリ内の追加デバイスは <option>lxc.hook.autodev</option> フックを使用して作成されます。
|
コンテナの /dev ディレクトリ内の追加デバイスは <option>lxc.hook.autodev</option> フックを使用して作成されます。
|
||||||
|
@ -967,13 +967,13 @@ by Sungbae Yoo <sungbae.yoo at samsung.com>
|
|||||||
<filename>/dev</filename> to be set up as needed in the container
|
<filename>/dev</filename> to be set up as needed in the container
|
||||||
rootfs. If lxc.autodev is set to 1, then after mounting the container's
|
rootfs. If lxc.autodev is set to 1, then after mounting the container's
|
||||||
rootfs LXC will mount a fresh tmpfs under <filename>/dev</filename>
|
rootfs LXC will mount a fresh tmpfs under <filename>/dev</filename>
|
||||||
(limited to 100k) and fill in a minimal set of initial devices.
|
(limited to 500k) and fill in a minimal set of initial devices.
|
||||||
This is generally required when starting a container containing
|
This is generally required when starting a container containing
|
||||||
a "systemd" based "init" but may be optional at other times. Additional
|
a "systemd" based "init" but may be optional at other times. Additional
|
||||||
devices in the containers /dev directory may be created through the
|
devices in the containers /dev directory may be created through the
|
||||||
use of the <option>lxc.hook.autodev</option> hook.
|
use of the <option>lxc.hook.autodev</option> hook.
|
||||||
-->
|
-->
|
||||||
기본적으로 lxc는 약간의 심볼릭 링크(fd, stdin, stdout, stderr)를 컨테이너의 <filename>/dev</filename> 디렉토리에 생성한다. 그러나 자동으로 장치 노드 항목들을 생성해주지 않는다. 컨테이너의 루트 파일시스템에서 필요로하는 <filename>/dev</filename>를 생성할 수 있게 하는 것이다. lxc.autodev가 1로 지정되었다면, 컨테이너 루트 파일시스템을 마운트 한 후, LXC가 <filename>/dev</filename> 밑에 새로운 tmpfs(최대 100k)를 마운트 해준다. 그리고 최소한의 장치만을 채워준다.
|
기본적으로 lxc는 약간의 심볼릭 링크(fd, stdin, stdout, stderr)를 컨테이너의 <filename>/dev</filename> 디렉토리에 생성한다. 그러나 자동으로 장치 노드 항목들을 생성해주지 않는다. 컨테이너의 루트 파일시스템에서 필요로하는 <filename>/dev</filename>를 생성할 수 있게 하는 것이다. lxc.autodev가 1로 지정되었다면, 컨테이너 루트 파일시스템을 마운트 한 후, LXC가 <filename>/dev</filename> 밑에 새로운 tmpfs(최대 500k)를 마운트 해준다. 그리고 최소한의 장치만을 채워준다.
|
||||||
이것은 "systemd" 기반의 "init" 환경의 컨테이너를 시작할 때 일반적으로 필요하지만, 다른 환경의 경우는 선택적인 요소이다.
|
이것은 "systemd" 기반의 "init" 환경의 컨테이너를 시작할 때 일반적으로 필요하지만, 다른 환경의 경우는 선택적인 요소이다.
|
||||||
컨테이너의 부가적인 장치들은 <option>lxc.hook.autodev</option> 훅 스크립트를 사용하여 /dev 디렉토리에 생성할 수 있다.
|
컨테이너의 부가적인 장치들은 <option>lxc.hook.autodev</option> 훅 스크립트를 사용하여 /dev 디렉토리에 생성할 수 있다.
|
||||||
</para>
|
</para>
|
||||||
|
@ -743,7 +743,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
|||||||
<filename>/dev</filename> to be set up as needed in the container
|
<filename>/dev</filename> to be set up as needed in the container
|
||||||
rootfs. If lxc.autodev is set to 1, then after mounting the container's
|
rootfs. If lxc.autodev is set to 1, then after mounting the container's
|
||||||
rootfs LXC will mount a fresh tmpfs under <filename>/dev</filename>
|
rootfs LXC will mount a fresh tmpfs under <filename>/dev</filename>
|
||||||
(limited to 100k) and fill in a minimal set of initial devices.
|
(limited to 500k) and fill in a minimal set of initial devices.
|
||||||
This is generally required when starting a container containing
|
This is generally required when starting a container containing
|
||||||
a "systemd" based "init" but may be optional at other times. Additional
|
a "systemd" based "init" but may be optional at other times. Additional
|
||||||
devices in the containers /dev directory may be created through the
|
devices in the containers /dev directory may be created through the
|
||||||
|
@ -1080,7 +1080,7 @@ static int mount_autodev(const char *name, const struct lxc_rootfs *rootfs, cons
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (safe_mount("none", path, "tmpfs", 0, "size=100000,mode=755",
|
if (safe_mount("none", path, "tmpfs", 0, "size=500000,mode=755",
|
||||||
rootfs->path ? rootfs->mount : NULL)) {
|
rootfs->path ? rootfs->mount : NULL)) {
|
||||||
SYSERROR("Failed mounting tmpfs onto %s\n", path);
|
SYSERROR("Failed mounting tmpfs onto %s\n", path);
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user