File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Expand file tree Collapse file tree 1 file changed +11
-2
lines changed 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