get_boot_critical_chain
Identify what delays your boot target by returning the time-critical boot chain: a dependency tree of units with active-time and start duration. Optionally start from a specific unit to trace its bottleneck.
Instructions
Returns the time-critical boot chain from systemd-analyze critical-chain: a dependency tree of units with their active-time point and start duration. Read-only; fatal only if systemd-analyze is missing or fails. When unit is omitted, returns the full chain to the default target (usually graphical.target). When unit is provided (e.g. 'nginx.service'), returns only the chain from that unit downward. Use to find what delays the boot target; for raw per-unit durations prefer get_boot_blame, for phase-level breakdown prefer get_boot_time.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit | No | optional unit name to start the chain from (e.g. 'graphical.target') |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | ||
| errors | No | ||
| target | Yes |