File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -335,8 +335,7 @@ def ssh_private_key() -> Iterator[SshKey]:
335
335
def nixos_anywhere (
336
336
ip : str , flake : str , ssh_private_key : Path , nixos_anywhere_args : List [str ]
337
337
) -> None :
338
- run (
339
- [
338
+ cmd = [
340
339
# FIXME: path
341
340
"bash" ,
342
341
str (NIXOS_ANYWHERE_SH ),
@@ -346,11 +345,13 @@ def nixos_anywhere(
346
345
# do not substitute because we do not have internet and copying locally is faster.
347
346
"--no-substitute-on-destination" ,
348
347
ip ,
349
- ]
350
- + nixos_anywhere_args ,
348
+ ] + nixos_anywhere_args
349
+ run ( cmd ,
351
350
extra_env = dict (SSH_PRIVATE_KEY = ssh_private_key .read_text ()),
352
351
check = False ,
353
352
)
353
+ print ("If the installation failed, you may run the install command manually again:" )
354
+ print (f"{ cmd } -i { ssh_private_key .read_text ()} " )
354
355
355
356
356
357
@contextmanager
You can’t perform that action at this time.
0 commit comments