File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change @@ -64,6 +64,8 @@ Options:
64
64
do not reboot after installation, allowing further customization of the target installation.
65
65
* --kexec url
66
66
use another kexec tarball to bootstrap NixOS
67
+ * --skip-disko
68
+ dont format disks with disko
67
69
* --stop-after-disko
68
70
exit after disko formating, you can then proceed to install manually or some other way
69
71
* --extra-files files
@@ -79,6 +81,7 @@ Options:
79
81
nix option to pass to every nix related command
80
82
* --from store-uri
81
83
URL of the source Nix store to copy the nixos and disko closure from
84
+ Usage: nixos-anywhere [options] ssh-host
82
85
` ` `
83
86
84
87
# # Using your own kexec image
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ Options:
15
15
do not reboot after installation, allowing further customization of the target installation.
16
16
* --kexec url
17
17
use another kexec tarball to bootstrap NixOS
18
+ * --skip-disko
19
+ dont format disks with disko
18
20
* --stop-after-disko
19
21
exit after disko formating, you can then proceed to install manually or some other way
20
22
* --extra-files files
@@ -89,6 +91,9 @@ while [[ $# -gt 0 ]]; do
89
91
shift
90
92
shift
91
93
;;
94
+ --skip-disko)
95
+ skip_disko=y
96
+ ;;
92
97
--stop-after-disko)
93
98
stop_after_disko=y
94
99
;;
@@ -293,8 +298,12 @@ for path in "${!disk_encryption_keys[@]}"; do
293
298
ssh_ " umask 077; cat > $path " < " ${disk_encryption_keys[$path]} "
294
299
done
295
300
296
- nix_copy --to " ssh://$ssh_connection " " $disko_script "
297
- ssh_ " $disko_script "
301
+ if [[ ${skip_disko} == " y" ]]; then
302
+ echo " Skipping disko (partitioning)."
303
+ else
304
+ nix_copy --to " ssh://$ssh_connection " " $disko_script "
305
+ ssh_ " $disko_script "
306
+ fi
298
307
299
308
if [[ ${stop_after_disko-n} == " y" ]]; then
300
309
# Should we also do this for `--no-reboot`?
You can’t perform that action at this time.
0 commit comments