M #: enable rc_sys autodetect for DH images (#1036)

This commit is contained in:
Christian González authored and GitHub committed 2021-03-26 16:28:50 +01:00
1 parent 34b80d5712
commit 40fc1a166f
2 files changed
+3 -2

No files matched your search

@@ -205,7 +205,8 @@ image_id=$(docker images -q one"$sid")
#-------------------------------------------------------------------------------
# Flatten container image
#-------------------------------------------------------------------------------
container_id=$(docker run -d "$image_id" /bin/true)
# rm -f /.dockerenv to avoid external tools to autodetect as docker images
container_id=$(docker run -d "$image_id" rm -f /.dockerenv)
docker export -o "$tarball" "$container_id" > /dev/null 2>&1
@@ -19,4 +19,4 @@ RUN rc-update add sshd default && \
rc-update add udev default && \
rc-update add networking default
RUN echo 'rc_sys=""' >> /etc/rc.conf
RUN sed -i '/rc_sys/s/^/#/' /etc/rc.conf