From 82e69a867270efff48f0a3a4dc8f96881aa97662 Mon Sep 17 00:00:00 2001 From: gpunathilell Date: Tue, 29 Oct 2024 18:06:06 +0200 Subject: [PATCH] Changes for mounting dbus socket --- dockers/docker-platform-monitor/Dockerfile.j2 | 3 +++ files/build_templates/docker_image_ctl.j2 | 1 + 2 files changed, 4 insertions(+) diff --git a/dockers/docker-platform-monitor/Dockerfile.j2 b/dockers/docker-platform-monitor/Dockerfile.j2 index b357133f5b91..0dc97abaa20b 100755 --- a/dockers/docker-platform-monitor/Dockerfile.j2 +++ b/dockers/docker-platform-monitor/Dockerfile.j2 @@ -29,6 +29,9 @@ RUN apt-get update && \ nvme-cli \ ethtool \ xxd +{% if sonic_asic_platform == 'mellanox' %} +RUN apt-get install -y dbus +{% endif %} # smartmontools version should match the installed smartmontools in sonic_debian_extension build template RUN apt-get install -y -t bookworm-backports \ diff --git a/files/build_templates/docker_image_ctl.j2 b/files/build_templates/docker_image_ctl.j2 index 67add27cea53..a4a255f78b03 100644 --- a/files/build_templates/docker_image_ctl.j2 +++ b/files/build_templates/docker_image_ctl.j2 @@ -644,6 +644,7 @@ start() { -v /var/run/hw-management:/var/run/hw-management:rw \ -v mlnx_sdk_socket:/var/run/sx_sdk \ -v /tmp/nv-syncd-shared/:/tmp \ + -v /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket \ -v /dev/shm:/dev/shm:rw \ -e SX_API_SOCKET_FILE=/var/run/sx_sdk/sx_api.sock \ -v /dev/shm:/dev/shm:rw \