[PATCH] bus: Mark service as requiring nss-user-lookup.target
Submitted by Jonathan Lebon
Assigned to D-Bus Maintainers
Link to original bug (#106339)
Description
Created attachment 139253 [PATCH] bus: Mark service as requiring nss-user-lookup.target
My motivation for this patch is that I'm trying to use sssd on Fedora as a replacement for nss-altfiles (briefly: on Fedora Atomic Host, system users are stored in /usr/lib/passwd to be compatible with ostree's 3-way merge of /etc -- for more info, see [1]). The issue is that there is no clear ordering between the sssd and dbus units at boot time. So if during boot, dbus is started before sssd, then it will fail to resolve usernames and block convergence towards multi-user.target.
This patch ensures that dbus is started strictly after we reach the nss-user-lookup.target, which sssd symmetrically marks in its Before=
. (Obviously, this patch is also useful for other services like sssd which provide name resolution).
[1] https://github.com/pbrezina/authselect/issues/48
Patch 139253, "[PATCH] bus: Mark service as requiring nss-user-lookup.target":
0001-bus-Mark-service-as-requiring-nss-user-lookup.target.patch
Version: 1.12