machine/install: fix type issues

This commit is contained in:
Johannes Kirschbauer
2025-08-29 11:03:24 +02:00
parent d3534a2b72
commit 8584f3247a

View File

@@ -214,15 +214,15 @@ def run_machine_install(opts: InstallOptions, target_host: Remote) -> None:
cmd,
)
INSTALL_STEPS = {
default_install_steps: dict[str, Step] = {
"kexec": "nixos-anywhere",
"disko": "formatting",
"install": "installing",
"reboot": "rebooting"
"reboot": "rebooting",
}
def run_phase(phase: str) -> None:
notification = INSTALL_STEPS.get(phase, "nixos-anywhere")
notification = default_install_steps.get(phase, "nixos-anywhere")
notify_install_step(notification)
run(
[*cmd, "--phases", phase],