Skip to content

Commit 1f1febf

Browse files
committed
mios.toml: NEW [messages.elevation] + [messages.pass2_exit]
Two more SSOT sections for previously-hardcoded operator-facing prose: [messages.elevation] -- the 3-line UAC handoff banner shown immediately before the Pass-1 -> Pass-2 elevation prompt. Operator sees these every irm|iex run as a non-admin first launch. admin_required -- "MiOS bootstrap requires admin..." uac_trigger_line -- "Triggering UAC -- accept to continue..." uac_trigger_hint -- "in the elevated window, single prompt..." [messages.pass2_exit] -- 5 strings emitted by the Pass-2 inner heredoc when the bootstrap completes / fails / asks the operator to close the elevated window: exited_code_prefix -- "[!] Bootstrap exited with code N" failure_detail -- "Output above is the failure detail..." build_log_hint -- "build-mios.ps1's own log only kicks in on Pass-2 success." fetch_run_failed -- "[!] Bootstrap fetch/run failed: <err>" press_enter_close -- "Press Enter to close this elevated bootstrap window..." Companion mios-bootstrap commit (c434302) wires both sections into the resolvers: * Get-MiOS.ps1 Pass-1 banner reads via Get-MiosTomlValue at runtime (admin elevation runs in the live process). * Get-MiOS.ps1 builds the inner-cmd heredoc and bakes the [messages.pass2_exit] strings as literals at Pass-1 install time -- the heredoc's spawned pwsh has no toml access yet (runs before M:\ overlay is staged).
1 parent 2640f19 commit 1f1febf

1 file changed

Lines changed: 22 additions & 0 deletions

File tree

usr/share/mios/mios.toml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,28 @@ lines = [
267267
linear_log_note = "Note: console doesn't support in-place repaint -- running in linear log mode."
268268
linear_log_hint = " Phase transitions + throttled step updates print sequentially below."
269269

270+
# ----------------------------------------------------------------------------
271+
# [messages.elevation] -- Pass-1 -> Pass-2 UAC handoff prompts.
272+
# The operator sees these immediately before the UAC dialog fires.
273+
# ----------------------------------------------------------------------------
274+
[messages.elevation]
275+
admin_required = " [*] MiOS bootstrap requires admin (M:\\ partition + Podman + dev VM)."
276+
uac_trigger_line = " [*] Triggering UAC -- accept to continue. The install will then run"
277+
uac_trigger_hint = " in the elevated window, single prompt only."
278+
279+
# ----------------------------------------------------------------------------
280+
# [messages.pass2_exit] -- Pass-2 failure / completion / close-prompt
281+
# strings shown in the elevated bootstrap window after the install
282+
# returns (success or failure). Operators rebrand the post-flow
283+
# narrative via mios.html.
284+
# ----------------------------------------------------------------------------
285+
[messages.pass2_exit]
286+
exited_code_prefix = " [!] Bootstrap exited with code "
287+
failure_detail = " Output above is the failure detail (Pass-1 has no separate log)."
288+
build_log_hint = " build-mios.ps1's own log at M:\\MiOS\\logs\\mios-install-*.log only kicks in on Pass-2 success."
289+
fetch_run_failed = " [!] Bootstrap fetch/run failed: "
290+
press_enter_close = " Press Enter to close this elevated bootstrap window..."
291+
270292
# ----------------------------------------------------------------------------
271293
# [messages.install_complete] -- end-of-bootstrap operator-facing
272294
# summary banner. Title + bullets are operator-tunable; verb hints

0 commit comments

Comments
 (0)