File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ Options:
16
16
* -s, --store-paths <disko-script> <nixos-system>
17
17
set the store paths to the disko-script and nixos-system directly
18
18
if this is give, flake is not needed
19
+ * -t --tty
20
+ Force pseudo-terminal allocation in SSH sessions. Use this when you expect e.g.
21
+ to be asked for password entry during LUKS configuration.
19
22
* --no-reboot
20
23
do not reboot after installation, allowing further customization of the target installation.
21
24
* --kexec <url>
@@ -59,6 +62,7 @@ nix_options=(
59
62
)
60
63
substitute_on_destination=y
61
64
ssh_private_key_file=
65
+ ssh_tty_param=" -T"
62
66
63
67
declare -A disk_encryption_keys
64
68
declare -a nix_copy_options
@@ -83,6 +87,9 @@ while [[ $# -gt 0 ]]; do
83
87
shift
84
88
shift
85
89
;;
90
+ -t | --tty)
91
+ ssh_tty_param=" -t"
92
+ ;;
86
93
--help)
87
94
showUsage
88
95
exit 0
@@ -154,7 +161,7 @@ timeout_ssh_() {
154
161
timeout 10 ssh -i " $ssh_key_dir " /nixos-anywhere -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no " $ssh_connection " " $@ "
155
162
}
156
163
ssh_ () {
157
- ssh -T -i " $ssh_key_dir " /nixos-anywhere -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no " $ssh_connection " " $@ "
164
+ ssh " $ssh_tty_param " -i " $ssh_key_dir " /nixos-anywhere -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no " $ssh_connection " " $@ "
158
165
}
159
166
160
167
nix_copy () {
You can’t perform that action at this time.
0 commit comments