[docker-iccp]: do not mount kernel module into iccp container (#4372)
kernel module should be loaded outside container Signed-off-by: Guohan Lu <lguohan@gmail.com>
This commit is contained in:
parent
60b16495cc
commit
296470de25
@ -231,9 +231,6 @@ start() {
|
|||||||
{%- if docker_container_name != "database" %}
|
{%- if docker_container_name != "database" %}
|
||||||
-v /usr/share/sonic/device/$PLATFORM/$HWSKU/$DEV:/usr/share/sonic/hwsku:ro \
|
-v /usr/share/sonic/device/$PLATFORM/$HWSKU/$DEV:/usr/share/sonic/hwsku:ro \
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
{%- if docker_container_name == "iccpd" %}
|
|
||||||
-v /lib/modules:/lib/modules:ro \
|
|
||||||
{%- endif %}
|
|
||||||
{%- if sonic_asic_platform != "mellanox" %}
|
{%- if sonic_asic_platform != "mellanox" %}
|
||||||
--tmpfs /tmp \
|
--tmpfs /tmp \
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
@ -255,7 +252,7 @@ wait() {
|
|||||||
stop() {
|
stop() {
|
||||||
docker stop {{docker_container_name}}$DEV
|
docker stop {{docker_container_name}}$DEV
|
||||||
{%- if docker_container_name == "database" %}
|
{%- if docker_container_name == "database" %}
|
||||||
if [ "$DEV" ]; then
|
if [ "$DEV" ]; then
|
||||||
ip netns delete "$NET_NS"
|
ip netns delete "$NET_NS"
|
||||||
fi
|
fi
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
@ -266,7 +263,7 @@ DEV=$2 # namespace/device number to operate on
|
|||||||
if [ "$DEV" ]; then
|
if [ "$DEV" ]; then
|
||||||
NET_NS="asic$DEV" #name of the network namespace
|
NET_NS="asic$DEV" #name of the network namespace
|
||||||
else
|
else
|
||||||
NET_NS=""
|
NET_NS=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
Loading…
Reference in New Issue
Block a user