Skip to content

Commit

Permalink
Disable systemd-resolved to prevent dns failures
Browse files Browse the repository at this point in the history
Prevent random dns failures caused (most probably) by
`systemd-resolved`. Using workaround from Testing Farm.

Fix #2063.
  • Loading branch information
psss committed Sep 13, 2023
1 parent 66874ee commit 2b567d1
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions plans/main.fmf
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,17 @@ adjust:
how: install
directory: tmp/RPMS/noarch
when: how == full

# Disable systemd-resolved to prevent dns failures
# See: https://github.com/teemtee/tmt/issues/2063
- prepare+:
- name: disable-systemd-resolved
how: shell
script: |
systemctl disable systemd-resolved
systemctl mask systemd-resolved
rm -f /etc/resolv.conf
systemctl restart NetworkManager
sleep 3
cat /etc/resolv.conf
when: initiator == packit and distro == fedora

0 comments on commit 2b567d1

Please sign in to comment.