fix incorrect target host when build host is set
This commit is contained in:
@@ -171,7 +171,7 @@ def deploy_machine(machine: Machine) -> None:
|
|||||||
|
|
||||||
if build_host:
|
if build_host:
|
||||||
become_root = False
|
become_root = False
|
||||||
nix_options += ["--target-host", build_host.target]
|
nix_options += ["--target-host", target_host.target]
|
||||||
|
|
||||||
if target_host.user != "root":
|
if target_host.user != "root":
|
||||||
nix_options += ["--use-remote-sudo"]
|
nix_options += ["--use-remote-sudo"]
|
||||||
|
|||||||
Reference in New Issue
Block a user