]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
travis: workaround for dnf upgrade
authorFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 6 Nov 2018 19:55:07 +0000 (20:55 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Tue, 6 Nov 2018 20:09:45 +0000 (21:09 +0100)
dnf upgrade on Fedora Rawhide pulls in unwanted selinux-policy
packages which breaks the system in several ways (and usually
ends up with crashed systemd)

travis-ci/managers/fedora.sh

index 21a5231cc9612e464dd4ddd6d7648fbb977ec5f5..eed91d0d473730f2184ffb9c6268dc2f68f8d1b7 100755 (executable)
@@ -34,9 +34,11 @@ for phase in "${PHASES[@]}"; do
             $DOCKER_RUN -v $REPO_ROOT:/build:rw \
                         -w /build --privileged=true --name $CONT_NAME \
                         -dit --net=host fedora:$FEDORA_RELEASE /sbin/init
+            # Beautiful workaround for Fedora's version of Docker
+            sleep 1
             $DOCKER_EXEC dnf makecache
             # Install necessary build/test requirements
-            $DOCKER_EXEC dnf -y upgrade
+            $DOCKER_EXEC dnf -y --exclude selinux-policy\* upgrade
             $DOCKER_EXEC dnf -y install "${ADDITIONAL_DEPS[@]}"
             $DOCKER_EXEC dnf -y builddep systemd
             ;;