get_boot_critical_chain
Trace the systemd boot dependency chain delaying the default target. Identify which unit's start duration delays boot, optionally starting from a specific unit.
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 the dependency path that delays the boot target; get_boot_blame for a flat per-unit ranking, get_boot_time for phase totals.
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 |