Skip to content

Commit

Permalink
expose host dir /host/reboot-cause to pmon docker so that the reboot …
Browse files Browse the repository at this point in the history
…causing by user command can be identified
  • Loading branch information
Stephen Sun committed Jun 27, 2019
1 parent 4a37250 commit 3feb968
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions files/build_templates/docker_image_ctl.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand Down

0 comments on commit 3feb968

Please sign in to comment.