mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 02:54:26 +00:00
Three classes of drift cleaned up across 85 .md files:
- Em-dashes: replaced ` — ` with the contextually correct separator
(colon for `term: explanation`, period to split clauses across
sentences/source lines, parentheses for asides, semicolon for
tight-linked continuations). Two intentional exceptions remain
in `docs/contributing/documentation.md` (the rule literal) and
inside a fenced ```sh block in `docs/contributing/actions/debugging/ci.md`.
- SPOT self-labels: rewrote "This is the SPOT for X" to describe
the subject directly ("This directory holds X" / "This file
describes X"). Cross-references to other artefacts' canonical
role remain unchanged.
- Heading-emoji position: moved leading-emoji headings (`# 🧩 Title`)
to trailing position (`# Title 🧩`) per the headline rule that
emojis MUST come after the title text.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
26 lines
936 B
Markdown
26 lines
936 B
Markdown
# systemd. Enable ✅
|
|
|
|
This directory contains platform-specific scripts for enabling systemd in environments where it is not active by default.
|
|
For the canonical Make target index that invokes these helpers, see [make.md](../../../../docs/contributing/tools/make.md).
|
|
|
|
---
|
|
|
|
## Scripts 📄
|
|
|
|
### `wsl2.sh` 🪟
|
|
|
|
Enables systemd as the WSL2 init system by writing `systemd=true` into `/etc/wsl.conf`.
|
|
|
|
- Silently exits if not running on WSL2
|
|
- Silently exits if systemd is already running (`/run/systemd/system` exists)
|
|
- If systemd is configured but not yet active, prints instructions to restart WSL2
|
|
- If systemd is not configured at all, appends the `[boot]` section to `/etc/wsl.conf` and triggers `wsl --shutdown` to apply the change
|
|
|
|
> ⚠️ After this script runs, WSL2 must be fully restarted before systemd-dependent steps (DNS, AppArmor, etc.) will work.
|
|
|
|
---
|
|
|
|
## Related 🔗
|
|
|
|
- [`../`](../). systemd administration scripts
|