Skip to content

Commit

Permalink
fix(systemd-hostnamed): add missing dbus-org.freedesktop.hostname1.se…
Browse files Browse the repository at this point in the history
…rvice

Without this service, hostnamectl fails to run in the initrd.

```
sh-5.2# hostnamectl
Failed to query system properties: Could not activate remote peer: activation request failed: unknown unit.
sh-5.2# systemctl status dbus | grep hostname
Dec 22 11:07:56 sd-net-test dbus-broker-launch[216]: Activation request for 'org.freedesktop.hostname1' failed: The systemd unit 'dbus-org.freedesktop.hostname1.service' could not be found.
```
  • Loading branch information
aafeijoo-suse authored and johannbg committed Dec 24, 2022
1 parent 7ed0461 commit 4fca292
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules.d/01systemd-hostnamed/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ install() {
"$systemdutildir"/systemd-hostnamed \
"$systemdsystemunitdir"/systemd-hostnamed.service \
"$systemdsystemunitdir/systemd-hostnamed.service.d/*.conf" \
"$systemdsystemunitdir"/dbus-org.freedesktop.hostname1.service \
hostnamectl

# Install the hosts local user configurations if enabled.
Expand Down

0 comments on commit 4fca292

Please sign in to comment.