From 74f64c6dca44e4e94a860b01764cba3307c1b8f5 Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Thu, 12 Dec 2013 07:32:03 -0800 Subject: [PATCH] gentoo-portage/Dockerfile.template: Set rc_sys="lxc" Avoid: $ docker run -p 8010:8010 wking/buildbot ... * Caching service dependencies ... [ ok ] * You are attempting to run an openrc service on a * system which openrc did not boot. * You may be inside a chroot or you may have used * another initialization system to boot this system. * In this situation, you will get unpredictable results! * If you really want to do this, issue the following command: * touch /run/openrc/softlevel * ERROR: syslog-ng failed to start ... --- gentoo-portage/Dockerfile.template | 1 + 1 file changed, 1 insertion(+) diff --git a/gentoo-portage/Dockerfile.template b/gentoo-portage/Dockerfile.template index 7b9233a..ac66eb5 100644 --- a/gentoo-portage/Dockerfile.template +++ b/gentoo-portage/Dockerfile.template @@ -1,5 +1,6 @@ FROM NAMESPACE/gentoo:TAG MAINTAINER A. U. Thor +RUN sed -i 's/#rc_sys=""/rc_sys="lxc"/g' /etc/rc.conf RUN echo 'GENTOO_MIRRORS="http://mirror.mcs.anl.gov/pub/gentoo/"' >> /etc/portage/make.conf #RUN echo 'SYNC="rsync://rsync.us.gentoo.org"' >> /etc/portage/make.conf RUN mkdir -p /usr/portage -- 2.26.2