Skip to content

Commit

Permalink
[docker-mgmt-framework]: Don't overwrite /etc/passwd and /etc/group w…
Browse files Browse the repository at this point in the history
…ith symlinks (sonic-net#9375)

Fixes sonic-net#9376

Because /etc/passwd and /etc/group have been overwritten with symlinks
to /host_etc/passwd and /host_etc/group, the debug container build
fails. This is because the debug container is built without /etc being
mounted at /host_etc in the container (which does happen at runtime).
Because of that, /etc/passwd and /etc/group don't exist, which causes
some package installation errors when openssh-client tries to create a
group.

This is a partial revert of 1347f29.

Signed-off-by: Saikrishna Arcot <sarcot@microsoft.com>
  • Loading branch information
saiarcot895 authored Nov 25, 2021
1 parent 5c2423e commit fdd8236
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions dockers/docker-sonic-mgmt-framework/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,4 @@ RUN apt-get remove -y g++ python3-dev
RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y
RUN rm -rf /debs

## TODO: symbolic links will be removed when AAA improvements get merged
RUN ln -sf /host_etc/passwd /etc/passwd
RUN ln -sf /host_etc/group /etc/group

ENTRYPOINT ["/usr/local/bin/supervisord"]

0 comments on commit fdd8236

Please sign in to comment.