A slow boot is rarely solved by disabling the first service in a timing list. systemd starts independent work in parallel, so a unit can take a long time without delaying the point you care about. Use the timing views to form a hypothesis, then confirm it with dependencies and logs.
Establish the boundary
systemd-analyze timeThe summary separates firmware, boot loader, kernel, initrd, and userspace time when the platform exposes those stages. If most delay occurs before userspace, tuning a service unit will not address it.1
Also define what “booted” means for this incident. A login prompt, network availability, and a ready application may correspond to different targets.3
Use blame as a lead list
systemd-analyze blame | head -n 20blame orders units by activation time. It does not show how much each unit delayed the overall boot, and it can be misleading for services whose initialization completes asynchronously or whose timing metadata is incomplete.1
Treat the output as a list of units to investigate, not a verdict.
Follow the critical chain
systemd-analyze critical-chain
systemd-analyze critical-chain multi-user.targetThe critical-chain view follows time-critical dependencies toward a target. The timestamp after @ shows when a unit became active; the duration after + shows how long activation took.1
Dependency ordering is built from unit relationships such as After=, Before=, Wants=, and Requires=. Ordering and requirement are separate concepts, so read both when an unexpected unit appears in the chain.2
Inspect one suspect
unit=example.service
systemctl show "$unit" \
-p ActiveEnterTimestampMonotonic \
-p InactiveExitTimestampMonotonic \
-p After -p Before -p Wants -p Requires
journalctl -b -u "$unit" --no-pagerThe journal may reveal a DNS timeout, missing device, retry loop, or remote dependency hidden behind the aggregate duration. Fix that dependency or timeout rather than masking the service.
For a visual artifact:
systemd-analyze plot > boot.svgThe plot shows parallel execution and ordering more clearly than a flat list. It can contain unit names and timing details, so review it before sharing.1
[!CAUTION] Do not disable a slow unit until you understand why the boot target wants it. A faster prompt is not an improvement if storage, networking, security, or application initialization is silently missing.