Skip to content

Commit

Permalink
[pmon] Add smartmontools to pmon docker (sonic-net#11837)
Browse files Browse the repository at this point in the history
* Add smartmontools to pmon docker

* Set smartmontools to install version 7.2-1 in pmon to match host; clean up smartmontools build files

* Add comments on smartmontools version for both host and pmon
  • Loading branch information
cytsao1 authored Oct 17, 2022
1 parent 7ba1d25 commit 9ef8464
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 24 deletions.
4 changes: 3 additions & 1 deletion dockers/docker-platform-monitor/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ RUN apt-get update && \
psmisc \
python3-jsonschema \
libpci3 \
iputils-ping
iputils-ping \
# smartmontools version should match the installed smartmontools in sonic_debian_extension build template
smartmontools=7.2-1

# On Arista devices, the sonic_platform wheel is not installed in the container.
# Instead, the installation directory is mounted from the host OS. However, this method
Expand Down
2 changes: 1 addition & 1 deletion files/build_templates/sonic_debian_extension.j2
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ sudo chmod 755 $FILESYSTEM_ROOT/usr/bin/memory_checker
sudo cp $IMAGE_CONFIGS/monit/restart_service $FILESYSTEM_ROOT/usr/bin/
sudo chmod 755 $FILESYSTEM_ROOT/usr/bin/restart_service

# Install custom-built smartmontools
# Installed smartmontools version should match installed smartmontools in docker-platform-monitor Dockerfile
sudo LANG=C DEBIAN_FRONTEND=noninteractive chroot $FILESYSTEM_ROOT apt-get -y install smartmontools=7.2-1

# Install custom-built openssh sshd
Expand Down
10 changes: 0 additions & 10 deletions rules/smartmontools.dep

This file was deleted.

12 changes: 0 additions & 12 deletions rules/smartmontools.mk

This file was deleted.

0 comments on commit 9ef8464

Please sign in to comment.