public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Ben Boeckel <mathstuf@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/setup] rawhide: profile: apply a timeout to `hostnamectl`
Date: Tue, 03 Nov 2026 13:33:59 GMT	[thread overview]
Message-ID: <179371283911.1.11409852494228595475.rpms-setup-5da28d20eab4@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/setup
            Branch : rawhide
            Commit : 5da28d20eab4728d788c70abb0d51551eb528627
            Author : Ben Boeckel <mathstuf@gmail.com>
            Date   : 2026-11-03T13:33:40+00:00
            Stats  : +1/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/rpms/setup/c/5da28d20eab4728d788c70abb0d51551eb528627?branch=rawhide

            Log:
            profile: apply a timeout to `hostnamectl`

On a machine where `systemd` has been updated, communication channels
sometimes fall over. While a reboot is necessary, opening new shells is
blocked on `hostnamectl` blocking on the down communication channel.
Apply a 3-second timeout to the D-Bus communication before falling back
to other mechanisms so that shells can be opened even on a degraded
system.

---
diff --git a/profile b/profile
index 8bcc0e8..019cf6c 100644
--- a/profile
+++ b/profile
@@ -45,7 +45,7 @@ else
     pathmunge /usr/sbin after
 fi
 
-HOSTNAME=$(/usr/bin/hostnamectl --transient 2>/dev/null) || \
+HOSTNAME=$(SYSTEMD_BUS_TIMEOUT=3 /usr/bin/hostnamectl --transient 2>/dev/null) || \
 HOSTNAME=$(/usr/bin/hostname 2>/dev/null) || \
 HOSTNAME=$(/usr/bin/uname -n)
 

                 reply	other threads:[~2026-11-03 13:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179371283911.1.11409852494228595475.rpms-setup-5da28d20eab4@fedoraproject.org \
    --to=mathstuf@gmail.com \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox