Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: work around bug in systemd/debian #9105

Merged
merged 1 commit into from Aug 7, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions tests/lib/prepare-restore.sh
Expand Up @@ -398,6 +398,16 @@ prepare_project() {

install_pkg_dependencies

# Work around systemd / Debian bug interaction. We are installing
# libsystemd-dev which upgrades systemd to 246-2 (from 245-*) leaving
# behind systemd-logind.service from the old version. This is tracked as
# Debian bug https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=919509 and
# it really affects Desktop systems where Wayland/X don't like logind from
# ever being restarted. As a workaround, restart logind ourselves once
# here. This change is generic, as it may happen on any distribution that
# undergoes a similar transition.
systemctl restart systemd-logind.service || true

# We take a special case for Debian/Ubuntu where we install additional build deps
# base on the packaging. In Fedora/Suse this is handled via mock/osc
case "$SPREAD_SYSTEM" in
Expand Down