/* Let's synchronously lock all home directories managed by homed that have been marked for it. This
* way the key material required to access these volumes is hopefully removed from memory. */
- r = sd_bus_open_system(&bus);
+ r = bus_connect_system_systemd(&bus);
if (r < 0)
- return log_warning_errno(r, "Failed to connect to system bus, ignoring: %m");
+ return log_error_errno(r, "Failed to connect to system bus: %m");
r = bus_message_new_method_call(bus, &m, bus_home_mgr, "LockAllHomes");
if (r < 0)