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 @@ -24,6 +24,8 @@ Options:
24
24
* --disk-encryption-keys remote_path local_path
25
25
copy the contents of the file or pipe in local_path to remote_path in the installer environment,
26
26
after kexec but before installation. Can be repeated.
27
+ * --no-substitute-on-destination
28
+ disable passing --substitute-on-destination to nix-copy
27
29
* --debug
28
30
enable debug output
29
31
USAGE
@@ -37,6 +39,7 @@ abort() {
37
39
kexec_url=https://github.com/nix-community/nixos-images/releases/download/nixos-22.11/nixos-kexec-installer-x86_64-linux.tar.gz
38
40
enable_debug=" "
39
41
maybereboot=" sleep 6 && reboot"
42
+ substitute_on_destination=" --substitute-on-destination"
40
43
41
44
declare -A disk_encryption_keys
42
45
@@ -86,6 +89,10 @@ while [[ $# -gt 0 ]]; do
86
89
--no-reboot)
87
90
maybereboot=" "
88
91
;;
92
+ --no-substitute-on-destination)
93
+ substitute_on_destination=" "
94
+ ;;
95
+
89
96
* )
90
97
if [[ -z ${ssh_connection:- } ]]; then
91
98
ssh_connection=" $1 "
117
124
118
125
nix_copy () {
119
126
NIX_SSHOPTS=' -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' nix copy \
120
- " ${nix_options[@]} " \
127
+ " ${nix_options[@]} " " ${substitute_on_destination} " \
121
128
" $@ "
122
129
}
123
130
nix_build () {
You can’t perform that action at this time.
0 commit comments