diff options
author | Alex Brandt <alunduil@alunduil.com> | 2016-02-28 13:30:16 -0600 |
---|---|---|
committer | Alex Brandt <alunduil@alunduil.com> | 2016-02-28 13:30:16 -0600 |
commit | 9d8239695239b3954783932fcbb9a59e00369fdc (patch) | |
tree | c70248dcf862e48f82cc0188bd12ac9c45afb3ad | |
parent | Merge pull request #27 from ChaosEngine/master (diff) | |
download | docker-images-9d8239695239b3954783932fcbb9a59e00369fdc.tar.gz docker-images-9d8239695239b3954783932fcbb9a59e00369fdc.tar.bz2 docker-images-9d8239695239b3954783932fcbb9a59e00369fdc.zip |
ensure openrc directory exists
The builds have been failing due to the openrc directory not existing
before the injection of a pseudo soft runlevel. This ensures that
directory exists (at least for this step).
* fixes #30
-rw-r--r-- | amd64-hardened-nomultilib/Dockerfile | 2 | ||||
-rw-r--r-- | amd64-hardened/Dockerfile | 2 | ||||
-rw-r--r-- | amd64-nomultilib/Dockerfile | 2 | ||||
-rw-r--r-- | amd64/Dockerfile | 2 | ||||
-rw-r--r-- | x86/Dockerfile | 2 |
5 files changed, 5 insertions, 5 deletions
diff --git a/amd64-hardened-nomultilib/Dockerfile b/amd64-hardened-nomultilib/Dockerfile index 30f9785..43751a5 100644 --- a/amd64-hardened-nomultilib/Dockerfile +++ b/amd64-hardened-nomultilib/Dockerfile @@ -8,7 +8,7 @@ ADD build.sh / RUN /build.sh amd64 x86_64 -hardened+nomultilib # Setup the (virtually) current runlevel -RUN echo "default" > /run/openrc/softlevel +RUN mkdir -p /run/openrc && echo "default" > /run/openrc/softlevel # Setup the rc_sys RUN sed -e 's/#rc_sys=""/rc_sys="lxc"/g' -i /etc/rc.conf diff --git a/amd64-hardened/Dockerfile b/amd64-hardened/Dockerfile index a2dfdc2..4ac3a4b 100644 --- a/amd64-hardened/Dockerfile +++ b/amd64-hardened/Dockerfile @@ -8,7 +8,7 @@ ADD build.sh / RUN /build.sh amd64 x86_64 -hardened # Setup the (virtually) current runlevel -RUN echo "default" > /run/openrc/softlevel +RUN mkdir -p /run/openrc && echo "default" > /run/openrc/softlevel # Setup the rc_sys RUN sed -e 's/#rc_sys=""/rc_sys="lxc"/g' -i /etc/rc.conf diff --git a/amd64-nomultilib/Dockerfile b/amd64-nomultilib/Dockerfile index 3fb7d92..d8999da 100644 --- a/amd64-nomultilib/Dockerfile +++ b/amd64-nomultilib/Dockerfile @@ -8,7 +8,7 @@ ADD build.sh / RUN /build.sh amd64 x86_64 -nomultilib # Setup the (virtually) current runlevel -RUN echo "default" > /run/openrc/softlevel +RUN mkdir -p /run/openrc && echo "default" > /run/openrc/softlevel # Setup the rc_sys RUN sed -e 's/#rc_sys=""/rc_sys="lxc"/g' -i /etc/rc.conf diff --git a/amd64/Dockerfile b/amd64/Dockerfile index e18c5d3..b984b29 100644 --- a/amd64/Dockerfile +++ b/amd64/Dockerfile @@ -8,7 +8,7 @@ ADD build.sh / RUN /build.sh amd64 x86_64 # Setup the (virtually) current runlevel -RUN echo "default" > /run/openrc/softlevel +RUN mkdir -p /run/openrc && echo "default" > /run/openrc/softlevel # Setup the rc_sys RUN sed -e 's/#rc_sys=""/rc_sys="lxc"/g' -i /etc/rc.conf diff --git a/x86/Dockerfile b/x86/Dockerfile index 1c13cbf..2a3a074 100644 --- a/x86/Dockerfile +++ b/x86/Dockerfile @@ -13,7 +13,7 @@ RUN apt-get update && apt-get install -y \ RUN /build.sh x86 i686 # Setup the (virtually) current runlevel -RUN echo "default" > /run/openrc/softlevel +RUN mkdir -p /run/openrc && echo "default" > /run/openrc/softlevel # Setup the rc_sys RUN sed -e 's/#rc_sys=""/rc_sys="lxc"/g' -i /etc/rc.conf |