Otherwise it'll remain active and cause networkd to get started again
during the downgrade.
timer1=$(systemctl show -P TimersCalendar upgrade_timer_test.timer)
timer2=$(systemctl show -P NextElapseUSecRealtime upgrade_timer_test.timer)
-dnf downgrade -y --allowerasing --disablerepo '*' "$pkgdir"/distro/*.rpm
-
# FIXME: See https://github.com/systemd/systemd/pull/39293
systemctl stop systemd-networkd-resolve-hook.socket || true
+dnf downgrade -y --allowerasing --disablerepo '*' "$pkgdir"/distro/*.rpm
+
# Some distros don't ship networkd, so the test will always fail
if command -v networkctl >/dev/null; then
networkd=1