Skip to content

Commit 6501e48

Browse files
authored
[Mellanox][Smartswitch] Bug fix for mounting dbus (#21854)
Why I did it The mount for smartswitch is not working on pmon container due to additional space in the bash script generated(pmon.sh) This is fixed How I did it Remove the space from .j2 file which generates pmon.sh script How to verify it Build image and Test it again
1 parent e959d77 commit 6501e48

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

files/build_templates/docker_image_ctl.j2

+2-2
Original file line numberDiff line numberDiff line change
@@ -618,9 +618,9 @@ start() {
618618
# TODO: Mellanox will remove the --tmpfs exception after SDK socket path changed in new SDK version
619619
{%- if docker_container_name == "pmon" %}
620620
if [[ $NUM_DPU -gt 0 ]]; then
621-
SMARTSWITCH_MNT= " -v /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket"
621+
SMARTSWITCH_MNT=" -v /var/run/dbus/system_bus_socket:/var/run/dbus/system_bus_socket"
622622
else
623-
SMARTSWITCH_MNT= ""
623+
SMARTSWITCH_MNT=""
624624
fi
625625
{%- endif %}
626626
{%- endif %}

0 commit comments

Comments
 (0)