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:
6464 do not reboot after installation, allowing further customization of the target installation.
6565* --kexec url
6666 use another kexec tarball to bootstrap NixOS
67+ * --skip-disko
68+ dont format disks with disko
6769* --stop-after-disko
6870 exit after disko formating, you can then proceed to install manually or some other way
6971* --extra-files files
@@ -79,6 +81,7 @@ Options:
7981 nix option to pass to every nix related command
8082* --from store-uri
8183 URL of the source Nix store to copy the nixos and disko closure from
84+ Usage: nixos-anywhere [options] ssh-host
8285` ` `
8386
8487# # Using your own kexec image
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ Options:
1515 do not reboot after installation, allowing further customization of the target installation.
1616* --kexec url
1717 use another kexec tarball to bootstrap NixOS
18+ * --skip-disko
19+ dont format disks with disko
1820* --stop-after-disko
1921 exit after disko formating, you can then proceed to install manually or some other way
2022* --extra-files files
@@ -89,6 +91,9 @@ while [[ $# -gt 0 ]]; do
8991 shift
9092 shift
9193 ;;
94+ --skip-disko)
95+ skip_disko=y
96+ ;;
9297 --stop-after-disko)
9398 stop_after_disko=y
9499 ;;
@@ -293,8 +298,12 @@ for path in "${!disk_encryption_keys[@]}"; do
293298 ssh_ " umask 077; cat > $path " < " ${disk_encryption_keys[$path]} "
294299done
295300
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
298307
299308if [[ ${stop_after_disko-n} == " y" ]]; then
300309 # Should we also do this for `--no-reboot`?
You can’t perform that action at this time.
0 commit comments