Skip to content

Commit 4fca292

Browse files
aafeijoo-susejohannbg
authored andcommitted
fix(systemd-hostnamed): add missing dbus-org.freedesktop.hostname1.service
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. ```
1 parent 7ed0461 commit 4fca292

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules.d/01systemd-hostnamed/module-setup.sh

+1
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ install() {
3939
"$systemdutildir"/systemd-hostnamed \
4040
"$systemdsystemunitdir"/systemd-hostnamed.service \
4141
"$systemdsystemunitdir/systemd-hostnamed.service.d/*.conf" \
42+
"$systemdsystemunitdir"/dbus-org.freedesktop.hostname1.service \
4243
hostnamectl
4344

4445
# Install the hosts local user configurations if enabled.

0 commit comments

Comments
 (0)