From 072a818cdfcd831d88927855cfe1979c6b628995 Mon Sep 17 00:00:00 2001 From: Alexys Jacob Date: Fri, 15 Nov 2019 00:24:19 +0100 Subject: ensure build does not fail for systemd due to missing /etc/rc.conf Signed-off-by: Alexys Jacob 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 --- stage3.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'stage3.Dockerfile') 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} -- cgit v1.2.3-65-gdbad