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,
|
||||
)
|
||||
|
||||
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],
|
||||
|
||||
Reference in New Issue
Block a user