Commit 3c7e365
fix: MOTD login resolution + cloud-final/greenboot-success WSL skip
* usr/libexec/mios/mios-dashboard.sh: MIOS_LINUX_USER resolution order
was MIOS_LINUX_USER="${USER:-mios}" set BEFORE sourcing install.env,
so when mios-dashboard-issue.service runs as root the dashboard
rendered `Cockpit https://localhost:9090/ login: root / mios`.
install.env now sources first; resolution preference is
install.env-staged MIOS_USER (canonical) > legacy MIOS_LINUX_USER
alias > $USER (only as last-ditch when both above are unset, for
dev hand-runs) > literal 'mios'.
* usr/lib/systemd/system/cloud-final.service.d/10-mios-wsl2.conf:
ConditionVirtualization=!wsl. cloud-final runs `nc /run/cloud-init/
share/final.sock` to signal a hypervisor; WSL has no such socket
and the call fails at every boot with `nc: /run/cloud-init/share/
final.sock: No such file or directory` -- the trailing red line
in `wsl -d MiOS` console output. Mirrors the existing skip for
cloud-init-local / cloud-init-network / cloud-config siblings.
* usr/lib/systemd/system/greenboot-success.target.d/10-mios-wsl2.conf:
ConditionVirtualization=!wsl. greenboot-success.target was missed
in the original cascade-skip pass -- it chains through
greenboot-healthcheck -> boot-complete -> boot.mount which needs
/dev/disk/by-label/boot (unsupported in WSL). With the existing
greenboot-healthcheck.service drop-in in place, this sibling target
was the last leg of the cascade still surfacing as failed at boot.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 7bec206 commit 3c7e365
3 files changed
Lines changed: 35 additions & 1 deletion
File tree
- usr
- libexec/mios
- lib/systemd/system
- cloud-final.service.d
- greenboot-success.target.d
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
Lines changed: 14 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
87 | 92 | | |
88 | 93 | | |
89 | | - | |
90 | 94 | | |
91 | 95 | | |
92 | 96 | | |
93 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
94 | 102 | | |
95 | 103 | | |
96 | 104 | | |
| |||
0 commit comments