]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
coverity: install systemd 16437/head
authorEvgeny Vereshchagin <evvers@ya.ru>
Sun, 12 Jul 2020 22:17:50 +0000 (22:17 +0000)
committerEvgeny Vereshchagin <evvers@ya.ru>
Sun, 12 Jul 2020 22:26:19 +0000 (22:26 +0000)
Apparently systemd is no longer installed in fedora containers
by default

```
docker: Error response from daemon: OCI runtime create failed: container_linux.go:348:
starting container process caused "exec: \"/sbin/init\": stat /sbin/init: no such file or directory": unknown.
The command "$CI_MANAGERS/fedora.sh SETUP" failed and exited with 127 during .
```

travis-ci/managers/fedora.sh

index 8fe43c077109fa499e33139d4fe2b6ec32338cd7..3a917564ed103b07432aad533f584caca40c8d5c 100755 (executable)
@@ -65,11 +65,11 @@ for phase in "${PHASES[@]}"; do
             info "Setup phase"
             info "Using Fedora $FEDORA_RELEASE"
             # Pull a Docker image and start a new container
-            docker pull fedora:$FEDORA_RELEASE
+            printf "FROM fedora:$FEDORA_RELEASE\nRUN bash -c 'dnf install -y systemd'\n" | docker build -t fedora-with-systemd/latest -
             info "Starting container $CONT_NAME"
             $DOCKER_RUN -v $REPO_ROOT:/build:rw \
                         -w /build --privileged=true --name $CONT_NAME \
-                        -dit --net=host fedora:$FEDORA_RELEASE /sbin/init
+                        -dit --net=host fedora-with-systemd/latest /sbin/init
             # Wait for the container to properly boot up, otherwise we were
             # running following dnf commands during the initializing/starting
             # (early/late bootup) phase, which caused nasty race conditions