Skip to content

Commit

Permalink
Add cron and the python 3 mock packages to the Bullseye slave image
Browse files Browse the repository at this point in the history
When using dpkg with the --root flag to install a deb package in a
chroot, dpkg checks to see if the users and groups specified in the
/var/lib/dpkg/statoverride file are valid. The problem is, it checks
against the host system's /etc/passwd and /etc/group files, instead of
/etc/passwd and /etc/group inside the chroot.

In the slave image for Buster, cron appears to have been automatically
installed, and so the crontab group existed. This doesn't appear to be
true for Bullseye, so explicitly install it. This makes sure that the
crontab group exists on the slave image itself.

Also install the mock python 3 package, this is needed by some test.

Signed-off-by: Saikrishna Arcot <[email protected]>
  • Loading branch information
saiarcot895 authored and lguohan committed Aug 13, 2021
1 parent c8b5dae commit 91f9b6f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sonic-slave-bullseye/Dockerfile.j2
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ RUN apt-get update && apt-get install -y \
libzmq5 \
libzmq3-dev \
jq \
cron \
# For quagga build
libreadline-dev \
texlive-latex-base \
Expand Down Expand Up @@ -398,7 +399,7 @@ RUN pip3 install setuptools==49.6.00
RUN pip3 install wheel==0.35.1

# For building sonic-utilities
RUN pip3 install fastentrypoints
RUN pip3 install fastentrypoints mock

# For running Python unit tests
RUN pip3 install pytest-runner==5.2
Expand Down

0 comments on commit 91f9b6f

Please sign in to comment.