expose host dir /host/reboot-cause to pmon docker so that the reboot causing by user command can be identified

This commit is contained in:
Stephen Sun 2019-06-27 16:58:45 +03:00
parent 4a37250f79
commit 3feb96869d

View File

@ -191,6 +191,9 @@ start() {
{%- if docker_container_name != "database" %}
-v /usr/share/sonic/device/$PLATFORM/$HWSKU:/usr/share/sonic/hwsku:ro \
{%- endif %}
{%- if docker_container_name == "pmon" %}
-v /host/reboot-cause:/host/reboot-cause \
{%- endif %}
{%- if sonic_asic_platform != "mellanox" %}
--tmpfs /tmp \
{%- endif %}