machine/install: fix type issues
This commit is contained in:
@@ -214,15 +214,15 @@ def run_machine_install(opts: InstallOptions, target_host: Remote) -> None:
|
|||||||
cmd,
|
cmd,
|
||||||
)
|
)
|
||||||
|
|
||||||
INSTALL_STEPS = {
|
default_install_steps: dict[str, Step] = {
|
||||||
"kexec": "nixos-anywhere",
|
"kexec": "nixos-anywhere",
|
||||||
"disko": "formatting",
|
"disko": "formatting",
|
||||||
"install": "installing",
|
"install": "installing",
|
||||||
"reboot": "rebooting"
|
"reboot": "rebooting",
|
||||||
}
|
}
|
||||||
|
|
||||||
def run_phase(phase: str) -> None:
|
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)
|
notify_install_step(notification)
|
||||||
run(
|
run(
|
||||||
[*cmd, "--phases", phase],
|
[*cmd, "--phases", phase],
|
||||||
|
|||||||
Reference in New Issue
Block a user