From fdd82368643a7400c07e46b4204c09b152bdac41 Mon Sep 17 00:00:00 2001 From: Saikrishna Arcot Date: Wed, 24 Nov 2021 23:51:59 -0800 Subject: [PATCH] [docker-mgmt-framework]: Don't overwrite /etc/passwd and /etc/group with symlinks (#9375) Fixes #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 1347f29178d363b68bbb24e9e884f19e9c49bda2. Signed-off-by: Saikrishna Arcot --- dockers/docker-sonic-mgmt-framework/Dockerfile.j2 | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dockers/docker-sonic-mgmt-framework/Dockerfile.j2 b/dockers/docker-sonic-mgmt-framework/Dockerfile.j2 index 50854949c8..a9a9beaa75 100644 --- a/dockers/docker-sonic-mgmt-framework/Dockerfile.j2 +++ b/dockers/docker-sonic-mgmt-framework/Dockerfile.j2 @@ -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"]