Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

systemd Boot

Direct answer

systemd as PID 1 starts the system after the kernel: it mounts filesystems from fstab, starts units in parallel by dependency and reaches the default target.

When to use this

Use it when boot is slow, a service fails during boot, or the system ends in emergency mode.

First 30 seconds

1. systemctl is-system-running — running or degraded?

2. systemctl --failed — which units?

3. systemd-analyze critical-chain — what delayed boot?

4. journalctl -b -u <unit> — why it failed.

5. Fix and reboot.

Operational verification

PID 1 starts → mounts from fstab → units started in parallel by dependency → default target reached

Evidence · next step

For Boot Process → systemd Boot, continue with the first unproven Topic check: Identify the failed boot ID, default target and first failed/blocking units using boot-scoped journal/systemd state. If that boundary is healthy, advance to the adjacent check: Inspect generated mounts/device units, dependency ordering, timeouts and conditions around the first failed job. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
linux
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformlinux
Key commandjournalctl -b
Scope / prerequisiteUse it when boot is slow, a service fails during boot, or the system ends in emergency mode.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Operational evidence path Verify boundary

real root + PID 1 → generators/unit load → dependency graph → device/mount/swap prerequisites → systemd jobs/order → default target convergence → service processes → readiness/workload

Healthy evidence: the intended boot transaction reaches the expected target without unexplained failed/blocking units and required services pass readiness/workload checks.

Step 2 Verification and output interpretation Verify boundary

Existing fast checks for this Topic. - Identify the failed boot ID, default target and first failed/blocking units using boot-scoped journal/systemd state.

  • Inspect generated mounts/device units, dependency ordering, timeouts and conditions around the first failed job.
  • Separate unit job result from process/service readiness and test the actual endpoint/workload dependency.
  • After correction, perform a new normal boot and confirm target convergence, no unexpected failed units and original workload readiness.

Verification chain. real root + PID 1 → generators/unit load → dependency graph → device/mount/swap prerequisites → systemd jobs/order → default target convergence → service processes → readiness/workload

Step 3 Commands Verify boundary
systemd-analyze critical-chain
systemctl get-default
journalctl -b
Step 4 Failure modes and next checks Narrow the fault

Suspicious evidence: a dependency cycle, device/mount timeout, failed generator/unit or service failure is hidden behind a generally usable login or nominal target reach.

It does not show behavior outside the captured host/VM, firmware, disk, selected boot entry, kernel/initramfs, root topology, boot attempt, service set, time or workload scope. systemd boot evidence requires the required transaction to converge and the original service/workload to become ready; active units or reached targets are intermediate states only.

Step 5 Common mistakes Narrow the fault
  • Services ordered with Wants but missing After.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points

systemctl is-system-running = degraded means some unit failed. systemd-analyze blame lists slow units; critical-chain shows what the boot waited for. A failing /etc/fstab entry often causes emergency mode — use nofail for non-critical mounts.

Key checks
  • systemd-analyze blame — slowest units
  • systemd-analyze — boot time per stage
  • journalctl -b -p err — errors in this boot
  • journalctl --list-boots — previous boots
  • cat /proc/cmdline — kernel command line used
ReferenceWhat it is1 section · depth on demand

Core model

Start with the exact failed boot ID and default/selected target, then identify failed or blocking jobs and the dependency that prevented convergence. Distinguish unit load state, job result, active state and application readiness. A reached target is a synchronization point, not evidence that every service behind the workload is healthy.

ReferenceImportant terms & boundaries6 sections · depth on demand

What this shows and what it does not

systemd boot evidence requires the required transaction to converge and the original service/workload to become ready; active units or reached targets are intermediate states only.

In depth

systemd's part of the boot: initrd and host targets

systemd runs twice in a typical boot: first inside the initramfs, then as PID 1 of the real system. The systemd bootup(7) manual page describes both phases.

In the initrd, the default target is initrd.target. systemd mounts the real root at /sysroot, reaches initrd-root-fs.target and initrd-fs.target, then initrd.target. After that, initrd-switch-root.service switches root to /sysroot. On the host system, systemd then works through sysinit.target and basic.target to default.target.

Host boot targets in order

TargetWhat's ready
local-fs-pre.target / local-fs.targetLocal file systems from fstab mounted
sysinit.targetEarly system initialisation (udev, swap, journald, random seed)
basic.targetSockets, timers, paths and slices set up; most services order after it
network-online.target(If requested) networking configured
multi-user.targetNormal services running
graphical.targetDisplay manager running

Tools for this phase

QuestionCommand
How long did each phase take?systemd-analyze
Which units were slow?systemd-analyze blame
What delayed reaching the target?systemd-analyze critical-chain
A visual timelinesystemd-analyze plot > boot.svg
What failed during boot?systemctl --failed, journalctl -b -p err
host$ systemd-analyze blame --no-pager | head -5
  5.204s systemd-networkd-wait-online.service
  1.812s postgresql@16-main.service
  1.103s snapd.service
   612ms dev-mapper-vg0\x2droot.device
host$ systemd-analyze critical-chain multi-user.target --no-pager
multi-user.target @12.410s
└─report-api.service @7.101s +312ms
  └─network-online.target @7.090s
    └─systemd-networkd-wait-online.service @1.885s +5.204s
host$ systemd-analyze plot > /tmp/boot.svg

Reading the example

The boot waits 5.2 seconds for systemd-networkd-wait-online, because report-api wants network-online.target. Either an interface that's listed in configuration is never coming up, or the wait is genuinely needed. In the first case, set RequiredForOnline=no on that interface rather than disabling the wait entirely.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Platform, version and operating-envelope scope

Linux distribution/systemd version; unit names, presets and service hardening differ by distribution/package.

How it works at runtime

systemd Boot is part of Boot Process → systemd Boot. systemd Boot covers PID 1 after the real root/userspace handoff: generator output, unit discovery, dependency and ordering transactions, mount/device targets, default target convergence and the distinction between unit activation and service readiness.

Topic-specific state model. systemd Boot covers PID 1 after the real root/userspace handoff: generator output, unit discovery, dependency and ordering transactions, mount/device targets, default target convergence and the distinction between unit activation and service readiness.

Interpretation rule. - systemd is PID 1 ≠ boot transaction completed successfully.

  • Target reached ≠ every wanted service is healthy or ready.
  • Unit active ≠ application endpoint or dependency works.
  • daemon-reload or restart success ≠ next boot uses the intended persistent enablement/dependency state.

Quick reference

systemd boot phases after initramfs:

1. sysinit.target — udev, filesystems from fstab (local-fs), swap, encrypted volumes, sysctl, tmpfiles.

2. basic.target — sockets, timers, paths, slices.

3. multi-user.target — services (network, sshd, applications).

4. graphical.target on desktops.

systemd-analyze plot > boot.svg
systemctl list-jobs              # what is still starting
journalctl -b -u systemd-fsck@*

Failing mounts of non-critical filesystems without nofail stop the boot at local-fs.target and drop to emergency mode.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Limits and how it fails

Primary failure point. systemd boot evidence requires the required transaction to converge and the original service/workload to become ready; active units or reached targets are intermediate states only.

ReferenceConfiguration & state1 section · depth on demand

Configuration, persistence and lifecycle

Distribution/platform context. systemd Boot owns boot-time PID 1 transaction/convergence. systemd & Services owns general runtime lifecycle and unit semantics; Filesystems/Networking/Package branches own dependency failures after isolation.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor doclinux current

Authoritative/upstream documentation reviewed for bounded claims in Boot Process → systemd Boot. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://systemd.io/ · confidence 94%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
systemd bootsystemd startup failurefailed boot unitssystemd boot troubleshooting
Embedded reference data

Quick lookup tables

systemd Boot operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for systemd Boot.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective statesystemd Boot covers PID 1 after the real root/userspace handoff: generator output, unit discovery, dependency and ordering transactions, mount/device targets, default target convergence and the distinction between unit activation and service readiness.Establish exactly what this Topic owns before crossing into another subsystem.
Fast verificationPin exact host + failed boot attempt → identify firmware mode/boot entry → capture bootloader entry + kernel/initramfs + command line → prove root-device discovery and early-userspace handoff → inspect PID 1 transaction/target → change one demonstrated cause → reboot through original path → verify service/workload readiness and regression.Use the shortest evidence path first; a fast check is a boundary test, not blanket proof.
Verification chainreal root + PID 1 → generators/unit load → dependency graph → device/mount/swap prerequisites → systemd jobs/order → default target convergence → service processes → readiness/workloadTrace requested/configured state through effective state to the observed workload result.
Failure boundarysystemd boot proof requires the required transaction to converge and the original service/workload to become ready; active units or reached targets are intermediate states only.Stop broad troubleshooting at the first boundary that is not supported by evidence.
Positive evidenceCorrelated Linux boot evidence can establish this proof path: real root + PID 1 → generators/unit load → dependency graph → device/mount/swap prerequisites → systemd jobs/order → default target convergence → service processes → readiness/workloadUse this observation only for the specific claim it actually supports.
Evidence limitIt does not independently prove behavior outside the captured host/VM, firmware, disk, selected boot entry, kernel/initramfs, root topology, boot attempt, service set, time or workload scope. systemd boot proof requires the required transaction to converge and the original service/workload to become ready; active units or reached targets are intermediate states only.Do not promote a local success signal into end-to-end or adjacent-dependency proof.
Next troubleshooting checkContinue from the first unproven handoff: capture the exact artifact/configuration and downstream state, change only the demonstrated cause, reboot through the original path, then repeat the original service/workload and adjacent regression checks.Continue to the next unresolved boundary while preserving the original test condition.

systemd Boot · operational reference

Compact Linux state, persistence, verification and boundary reference for fast lookup.

Reference boundarysystemd Boot
Topic pathBoot Process → systemd Boot
Runtime statesystemd Boot covers PID 1 after the real root/userspace handoff: generator output, unit discovery, dependency and ordering transactions, mount/device targets, default target convergence and the distinction between unit activation and service readiness.
Fast checks- Identify the failed boot ID, default target and first failed/blocking units using boot-scoped journal/systemd state. - Inspect generated mounts/device units, dependency ordering, timeouts and conditions around the first failed job. - Separate unit job result from process/service readiness and test the actual endpoint/workload dependency. - After correction, perform a new normal boot and confirm target convergence, no unexpected failed units and original workload readiness.
Verification chainreal root + PID 1 → generators/unit load → dependency graph → device/mount/swap prerequisites → systemd jobs/order → default target convergence → service processes → readiness/workload Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary.
Failure boundarysystemd boot proof requires the required transaction to converge and the original service/workload to become ready; active units or reached targets are intermediate states only. Boundary chain: unit config/drop-ins → dependency/order/condition → exec/process → readiness/active state → owned socket/file/device → dependent client/workload.
Persistence ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?