[PATCH] bus: Mark service as requiring nss-user-lookup.target
Submitted by Jonathan Lebon
Assigned to D-Bus Maintainers
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 ). 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).
Patch 139253, "[PATCH] bus: Mark service as requiring nss-user-lookup.target":