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 @@ -27,6 +27,8 @@ Options:
27
27
do not reboot after installation, allowing further customization of the target installation.
28
28
* --kexec <path>
29
29
use another kexec tarball to bootstrap NixOS
30
+ * --kexec-extra-flags
31
+ extra flags to add into the call to kexec, e.g. "--no-sync"
30
32
* --post-kexec-ssh-port <ssh_port>
31
33
after kexec is executed, use a custom ssh port to connect. Defaults to 22
32
34
* --copy-host-keys
@@ -65,6 +67,7 @@ step() {
65
67
66
68
here=$( dirname " ${BASH_SOURCE[0]} " )
67
69
kexec_url=" "
70
+ kexec_extra_flags=" "
68
71
enable_debug=" "
69
72
maybe_reboot=" sleep 6 && reboot"
70
73
nix_options=(
@@ -123,6 +126,10 @@ while [[ $# -gt 0 ]]; do
123
126
kexec_url=$2
124
127
shift
125
128
;;
129
+ --kexec-extra-flags)
130
+ kexec_extra_flags=$2
131
+ shift
132
+ ;;
126
133
--post-kexec-ssh-port)
127
134
post_kexec_ssh_port=$2
128
135
shift
396
403
fi
397
404
398
405
ssh_ << SSH
399
- TMPDIR=/root/kexec setsid ${maybe_sudo} /root/kexec/kexec/run
406
+ TMPDIR=/root/kexec setsid ${maybe_sudo} /root/kexec/kexec/run --kexec-extra-flags " ${kexec_extra_flags} "
400
407
SSH
401
408
402
409
# use the default SSH port to connect at this point
You can’t perform that action at this time.
0 commit comments