mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 19:01:54 +00:00
Four system scripts (wsl2-systemd-enable, wsl-dns-setup, tls-trust
linux/wsl2) sourced scripts/meta/env/{runtime,defaults}.sh — both
collapsed into load.sh by the SPOT refactor (80c396b8). Route them
through load.sh so INFINITO_IS_WSL2/INFINITO_CONTAINER resolve via
the generated .env.
Also rename the CoreDNS template placeholders to the INFINITO_*
namespace: \${IP4}/\${DOMAIN_RE} -> \${INFINITO_IP4}/\${INFINITO_DOMAIN_RE}.
env/ci.env carries the prefixed names since the env-prefix lint
(22cf6f38f), so envsubst was rendering empty answers — NXDOMAIN on
every CoreDNS query, breaking test-dns.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
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/systemexists) - 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.confand triggerswsl --shutdownto 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