Commit 56d58d3
feat(driver): launch Epiphany configurator before build (operator SSOT edit)
Migration chunk 5 of the Day-0 self-replication contract: the SSOT
toml/html configurator runs INSIDE MiOS-DEV before the build pipeline,
per the architecture memo:
"MiOS setup requires Epiphany for editing the SSOT TOML/HTML file
that's locally present and used to overwrite overlay global
defaults"
Operator instruction:
"fix the Profile to properly start within the podman-MiOS-DEV
machine and launch epiphany to the html file for the USER(s) to
modify and save for the build pipeline"
The /etc/profile.d chain already starts MiOS-DEV's interactive shells
correctly (mios-env.sh layered env, mios-wsl2.sh WSLg display + Wayland
socket, zz-mios-motd.sh dashboard banner). What was missing was the
Epiphany launch as part of the BUILD flow.
This commit adds a configurator step to mios-build-driver between the
identity load and the OCI build:
1. Invoke /usr/libexec/mios/mios-configurator-launch (existing
helper -- prefers Epiphany flatpak via WSLg, falls back to
xdg-open or printed URL).
2. Print a clear instruction box explaining the layered mios.toml
chain (per-user > host > vendor) and what the operator should
do (edit, save via FSA portal, return and press Enter).
3. Read-Host wait for the operator's confirmation.
4. After Enter: if ~/Downloads/mios.toml exists (the FSA portal's
default save target), `sudo install` it to /etc/mios/mios.toml
so subsequent `podman build` invocations see the edits via the
standard host-layer path. Then re-source /etc/profile.d/mios-
env.sh so any updated MIOS_* env vars take effect for this
session.
5. Proceed to podman build, BIB multi-format, bootc switch.
Skip hatch: MIOS_SKIP_CONFIGURATOR=1 jumps straight to the build
(useful for CI / unattended re-runs that already have a populated
/etc/mios/mios.toml from a prior session).
Why we don't auto-launch from /etc/profile.d on every login:
operators entering MiOS-DEV via menu choice "5" (Enter dev distro
now) just want a shell, not a popup. The configurator belongs in
the build flow specifically.
Bash syntax validated with bash -n: 0 errors.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 5844e30 commit 56d58d3
1 file changed
Lines changed: 73 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
105 | 105 | | |
106 | 106 | | |
107 | 107 | | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
108 | 181 | | |
109 | 182 | | |
110 | 183 | | |
| |||
0 commit comments