Skip to content

Commit

Permalink
images: Add hack for systemd-resolved startup race in rawhide
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpitt committed Jan 11, 2025
1 parent 4fddf42 commit 4ac707c
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions images/scripts/fedora.setup
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,15 @@ fi
# man-db cache update is a CPU/memory hog
rpm -e --verbose man-db

# HACK: https://bugzilla.redhat.com/show_bug.cgi?id=2333743
if [ "${IMAGE#fedora-rawhide}" != "$IMAGE" ]; then
mkdir -p /etc/systemd/system/systemd-resolved.service.d
printf '[Service]\nRestartSec=1s\n' > /etc/systemd/system/systemd-resolved.service.d/restart-wait.conf
systemctl daemon-reload
systemctl reset-failed systemd-resolved
systemctl start systemd-resolved
fi

# fedora-eln image is just used for building/fetching the anaconda-webui RPM dependencies
# no need to install all dependencies there
ALL_DEPS="$COCKPIT_DEPS"
Expand Down

0 comments on commit 4ac707c

Please sign in to comment.