Files
computer-playbook/scripts/system/systemd/enable
Environment TestandClaude Sonnet 4.6 5c1a963d30 docs(tools): restructure security and framework docs, add cleanup workflow
- Move flow/security/ghcr.md to tools/ghcr/authentication.md
- Move flow/security/mirror-cleanup.md to tools/ghcr/cleanup.md
- Move flow/security/branch.md to tools/github/branch.md
- Move flow/security/repository.md to tools/github/repository.md
- Move code/frameworks/ansible.md to tools/ansible.md
- Merge code/frameworks/Makefile.md into tools/make.md and extract file rules to artefact/files/makefile.md
- Rename tools/makefile.md to tools/make.md
- Add .github/workflows/images-mirror-cleanup.yml for manual GHCR cleanup
- Apply documentation.md standards: emojis on headlines, no em dashes, filename link text
- Fix all cross-references broken by directory restructuring

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-10 16:31:22 +02:00
..

✅ 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.


📄 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.


  • ../. systemd administration scripts