aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexys Jacob <ultrabug@gentoo.org>2019-11-15 00:24:19 +0100
committerAlexys Jacob <ultrabug@gentoo.org>2019-11-15 09:27:57 +0100
commit072a818cdfcd831d88927855cfe1979c6b628995 (patch)
tree5cbc14daf96e9e733a29b1a9f2754496beb68234 /stage3.Dockerfile
parentCorrected an example so the the container actually runs. (diff)
downloaddocker-images-072a818cdfcd831d88927855cfe1979c6b628995.tar.gz
docker-images-072a818cdfcd831d88927855cfe1979c6b628995.tar.bz2
docker-images-072a818cdfcd831d88927855cfe1979c6b628995.zip
ensure build does not fail for systemd due to missing /etc/rc.conf
Signed-off-by: Alexys Jacob <ultrabug@gentoo.org> Closes: https://github.com/gentoo/gentoo-docker-images/pull/72 Closes: https://github.com/gentoo/gentoo-docker-images/pull/71 Signed-off-by: Alexys Jacob <ultrabug@gentoo.org>
Diffstat (limited to 'stage3.Dockerfile')
-rw-r--r--stage3.Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/stage3.Dockerfile b/stage3.Dockerfile
index ad59ea7..e42d602 100644
--- a/stage3.Dockerfile
+++ b/stage3.Dockerfile
@@ -28,7 +28,7 @@ RUN echo "Building Gentoo Container image for ${ARCH} ${SUFFIX} fetching from ${
&& gpg --verify "${STAGE3}.DIGESTS.asc" \
&& awk '/# SHA512 HASH/{getline; print}' ${STAGE3}.DIGESTS.asc | sha512sum -c \
&& tar xpf "${STAGE3}" --xattrs --numeric-owner \
- && sed -i -e 's/#rc_sys=""/rc_sys="docker"/g' etc/rc.conf \
+ && ( sed -i -e 's/#rc_sys=""/rc_sys="docker"/g' etc/rc.conf 2>/dev/null || true ) \
&& echo 'UTC' > etc/timezone \
&& rm ${STAGE3}.DIGESTS.asc ${STAGE3}.CONTENTS ${STAGE3}