Skip to content

Commit 0c820a1

Browse files
authored
Mount directory warmboot in docker gbsyncd (#11852)
Why I did it The directory /var/warmboot as top directory for warmboot feature is also needed in docker gbsyncd. Some vendor SAI might save data under it. Without it, the SAI init/creation API failure has happened on PikeZ platform. How I did it Mount host directory /host/warmboot as /var/warmboot in docker gbsyncd, which is same as what it has done on docker syncd.
1 parent a1eae94 commit 0c820a1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

platform/components/docker-gbsyncd-broncos.mk

+1
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ $(DOCKER_GBSYNCD_BRONCOS)_CONTAINER_NAME = gbsyncd
3030
$(DOCKER_GBSYNCD_BRONCOS)_RUN_OPT += --privileged -t
3131
$(DOCKER_GBSYNCD_BRONCOS)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
3232
$(DOCKER_GBSYNCD_BRONCOS)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
33+
$(DOCKER_GBSYNCD_BRONCOS)_RUN_OPT += -v /host/warmboot:/var/warmboot
3334

3435
SONIC_ONLINE_DEBS += $(LIBSAI_BRONCOS)
3536

platform/template/docker-gbsyncd-base.mk

+1
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ $(DOCKER_GBSYNCD_BASE)_CONTAINER_NAME = gbsyncd
2727
$(DOCKER_GBSYNCD_BASE)_RUN_OPT += --privileged -t
2828
$(DOCKER_GBSYNCD_BASE)_RUN_OPT += -v /host/machine.conf:/etc/machine.conf
2929
$(DOCKER_GBSYNCD_BASE)_RUN_OPT += -v /etc/sonic:/etc/sonic:ro
30+
$(DOCKER_GBSYNCD_BASE)_RUN_OPT += -v /host/warmboot:/var/warmboot

0 commit comments

Comments
 (0)