Commit f271a43
FIX(wsl2): resolve WSL2 boot failures, ordering cycle, and Windows bootstrap
Systemd fixes:
- journald: add ReadKMsg=no + ForwardToSyslog=no to prevent WSL2 kernel 6.6+ crash
- mios-role: remove Before=sysinit.target (cycled with After=network-online.target);
move to After=sysinit.target, WantedBy=multi-user.target
- dbus-daemon-wsl: remove --syslog-only (203/EXEC when /dev/log absent); add StandardError=journal+console
- virtlxcd{,.service.d}: add ConditionVirtualization=!wsl to stop crash-loop (NOTCONFIGURED)
- virtlxcd-{admin,ro}.socket.d: add ConditionVirtualization=!wsl
- avahi-daemon.{service,socket}.d: add ConditionVirtualization=!wsl (no multicast in WSL2)
- ollama.service.d: add ConditionVirtualization=!wsl + ConditionPathExists guard
WSL2 runtime scripts:
- wsl-firstboot: replace stub with real impl — reads install.env, creates user via
sysusers + imperative fallback, sets sha512crypt hash, sets up home, marks done;
all logger calls wrapped with || true (journald may not be up at exec time)
- wsl-init: replace stub with runtime bridge — tmpfiles, WSLg X11 socket; same logger fix
Docs/infra:
- .gitignore: add *.socket.d/ whitelist alongside *.service.d/
- CLAUDE.md: fix stale lint claim; expand qcow2/vhdx/wsl2 into separate entries
- README.md: add missing just targets (raw, qcow2, vhdx, wsl2, all-bootstrap)
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent d551378 commit f271a43
14 files changed
Lines changed: 131 additions & 25 deletions
File tree
- usr
- libexec/mios
- lib/systemd
- journald.conf.d
- system
- avahi-daemon.service.d
- avahi-daemon.socket.d
- ollama.service.d
- virtlxcd-admin.socket.d
- virtlxcd-ro.socket.d
- virtlxcd.service.d
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
243 | 243 | | |
244 | 244 | | |
245 | 245 | | |
| 246 | + | |
| 247 | + | |
246 | 248 | | |
247 | 249 | | |
248 | 250 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
43 | 45 | | |
44 | 46 | | |
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
48 | 50 | | |
49 | | - | |
50 | | - | |
51 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
52 | 54 | | |
53 | 55 | | |
54 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
46 | 50 | | |
| 51 | + | |
47 | 52 | | |
48 | 53 | | |
49 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
| 2 | + | |
7 | 3 | | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
8 | 7 | | |
9 | 8 | | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | | - | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
0 commit comments