Skip to content

Commit

Permalink
Mounting /host/reboot-cause on pmon so that the modules can persist (s…
Browse files Browse the repository at this point in the history
…onic-net#20916)

Mounting /host/reboot-cause on pmon so that the modules can persist their reboot cause history

Why I did it
In SmartSwitch each DPU module's reboot-cause history needs to be persisted on the host

How I did it
By mounting "/host/reboot-cause" volume on pmon

How to verify it
Once the host boot up check the path on the pmon containe
  • Loading branch information
rameshraghupathy authored Dec 2, 2024
1 parent 948f838 commit 3ca6e7b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rules/docker-platform-monitor.mk
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ $(DOCKER_PLATFORM_MONITOR)_CONTAINER_NAME = pmon
$(DOCKER_PLATFORM_MONITOR)_RUN_OPT += --privileged -t
$(DOCKER_PLATFORM_MONITOR)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
$(DOCKER_PLATFORM_MONITOR)_RUN_OPT += -v /etc/timezone:/etc/timezone:ro
$(DOCKER_PLATFORM_MONITOR)_RUN_OPT += -v /host/reboot-cause:/host/reboot-cause:rw
$(DOCKER_PLATFORM_MONITOR)_RUN_OPT += -v /host/pmon/stormond:/usr/share/stormond:rw
$(DOCKER_PLATFORM_MONITOR)_RUN_OPT += -v /var/run/platform_cache:/var/run/platform_cache:ro
$(DOCKER_PLATFORM_MONITOR)_RUN_OPT += -v /usr/share/sonic/device/pddf:/usr/share/sonic/device/pddf:ro
Expand Down

0 comments on commit 3ca6e7b

Please sign in to comment.