Improving my Boot Time in Arch Linux (part 2)
After improving my boot time the last time, some (not all) boots were still taking time. It seemed to pause somewhere before the login screen.
Analyzing the systemd critical chain, looking for errors in journalctl and some web searching, I found an issue in systemd that matched my problem.
In the issue there is the suggestion to install dbus-broker. I did it and haven’t had any issue since.
Looking for the boot time issue
1sudo systemd-analyze critical-chain
2sudo journalctl -b -p err..alert
The journal from the issue (matched mine):
1Apr 02 20:47:23 nix lightdm[1054]: Error getting user list from org.freedesktop.Accounts: Timeout was reached
2Apr 02 20:47:23 nix accounts-daemon[1176]: error getting polkit authority: Error initializing authority: Error calling StartServiceByName for org.freedesktop.PolicyKit1: Timeout was reached
3Apr 02 20:47:23 nix dbus-daemon[989]: [system] Failed to activate service 'org.freedesktop.Accounts': timed out (service_start_timeout=25000ms)
4Apr 02 20:47:23 nix dbus-daemon[989]: [system] Failed to activate service 'org.freedesktop.PolicyKit1': timed out (service_start_timeout=25000ms)
5Apr 02 20:47:23 nix systemd[1]: NetworkManager.service: Unexpected error response from GetNameOwner(): Connection terminated
6Apr 02 20:47:23 nix systemd[1]: systemd-logind.service: Unexpected error response from GetNameOwner(): Connection terminated
7Apr 02 20:47:23 nix systemd[1]: systemd-homed.service: Unexpected error response from GetNameOwner(): Connection terminated
8Apr 02 20:47:23 nix systemd[1]: bluetooth.service: Unexpected error response from GetNameOwner(): Connection terminated
9Apr 02 20:47:23 nix systemd[1]: lightdm.service: Unexpected error response from GetNameOwner(): Connection terminated
10Apr 02 20:47:23 nix systemd[1]: systemd-hostnamed.service: Unexpected error response from GetNameOwner(): Connection terminated
11Apr 02 20:47:23 nix systemd[1]: wpa_supplicant.service: Unexpected error response from GetNameOwner(): Connection terminated
12Apr 02 20:47:23 nix systemd[1]: NetworkManager-dispatcher.service: Unexpected error response from GetNameOwner(): Connection terminated
13Apr 02 20:47:23 nix systemd[1]: polkit.service: Unexpected error response from GetNameOwner(): Connection terminated
14Apr 02 20:47:24 nix systemd-logind[1745]: User or group name "1000" starts with a digit, accepting for compatibility.
15Apr 02 20:47:24 nix systemd-logind[1745]: Failed to add user by file name 1000, ignoring: Invalid argument
16Apr 02 20:47:24 nix systemd-logind[1745]: User enumeration failed: Invalid argument
Install and enable dbus-broker
1paru -S dbus-broker
2sudo systemctl enable dbus-broker.service
3sudo systemctl start dbus-broker.service