diff --git a/flake.lock b/flake.lock index b14ba0ef..fb64376c 100644 --- a/flake.lock +++ b/flake.lock @@ -7,11 +7,11 @@ ] }, "locked": { - "lastModified": 1717637172, - "narHash": "sha256-geTO9YL1V9zYGxupuZvKFWxh6II9sH2bjI1dmEVhVYQ=", + "lastModified": 1718008439, + "narHash": "sha256-nlh/2uD5p2SAdkn6Zuey20yaR5FFWvhL3poapDGNE4Y=", "owner": "nix-community", "repo": "disko", - "rev": "713aa3df481782719aed4d8c20ad31a9effe3564", + "rev": "c1cfbfad7cb45f0c177b35b59ba67d1b5fc7ca82", "type": "github" }, "original": { @@ -51,11 +51,11 @@ ] }, "locked": { - "lastModified": 1717762166, - "narHash": "sha256-tb5aB7YSZUXl0OHKLXZJNJgRtnyxlgtabvj3xGsShMU=", + "lastModified": 1717994219, + "narHash": "sha256-ueTu01bYU5QXdL77psMkApYHpk339xNHg/M7ZzP3uPI=", "owner": "nix-community", "repo": "nixos-images", - "rev": "f267906ba610b2e29f3f45ab45a0669e28c407ef", + "rev": "e2fd329c3a39a90bb43e1e2cf47c180ed57831bf", "type": "github" }, "original": { @@ -66,11 +66,11 @@ }, "nixos-stable": { "locked": { - "lastModified": 1717555607, - "narHash": "sha256-WZ1s48OODmRJ3DHC+I/DtM3tDRuRJlNqMvxvAPTD7ec=", + "lastModified": 1717696253, + "narHash": "sha256-1+ua0ggXlYYPLTmMl3YeYYsBXDSCqT+Gw3u6l4gvMhA=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "0b8e7a1ae5a94da2e1ee3f3030a32020f6254105", + "rev": "9b5328b7f761a7bbdc0e332ac4cf076a3eedb89b", "type": "github" }, "original": { @@ -82,11 +82,11 @@ }, "nixpkgs": { "locked": { - "lastModified": 1717737457, - "narHash": "sha256-hqHp0W7ibfdu5DFc6EG3S3c+GSAbti7VUldFXSf/WiI=", + "lastModified": 1717926692, + "narHash": "sha256-THcv8qDqobZefHHluPjx/8n+MtVVb8ag/oJbKMqKNRo=", "owner": "nixos", "repo": "nixpkgs", - "rev": "bf3faad723ca984fc4ea95c1cee1d975a8ca2a28", + "rev": "7d916e720af6b2ca355e4d0cfb8e4f742c172239", "type": "github" }, "original": { @@ -113,11 +113,11 @@ ] }, "locked": { - "lastModified": 1717278143, - "narHash": "sha256-u10aDdYrpiGOLoxzY/mJ9llST9yO8Q7K/UlROoNxzDw=", + "lastModified": 1717850719, + "narHash": "sha256-npYqVg+Wk4oxnWrnVG7416fpfrlRhp/lQ6wQ4DHI8YE=", "owner": "numtide", "repo": "treefmt-nix", - "rev": "3eb96ca1ae9edf792a8e0963cc92fddfa5a87706", + "rev": "4fc1c45a5f50169f9f29f6a98a438fb910b834ed", "type": "github" }, "original": { diff --git a/src/nixos-anywhere.sh b/src/nixos-anywhere.sh index 64b32169..9010ae6f 100755 --- a/src/nixos-anywhere.sh +++ b/src/nixos-anywhere.sh @@ -27,6 +27,8 @@ Options: do not reboot after installation, allowing further customization of the target installation. * --kexec use another kexec tarball to bootstrap NixOS +* --kexec-extra-flags + extra flags to add into the call to kexec, e.g. "--no-sync" * --post-kexec-ssh-port after kexec is executed, use a custom ssh port to connect. Defaults to 22 * --copy-host-keys @@ -65,6 +67,7 @@ step() { here=$(dirname "${BASH_SOURCE[0]}") kexec_url="" +kexec_extra_flags="" enable_debug="" maybe_reboot="sleep 6 && reboot" nix_options=( @@ -123,6 +126,10 @@ while [[ $# -gt 0 ]]; do kexec_url=$2 shift ;; + --kexec-extra-flags) + kexec_extra_flags=$2 + shift + ;; --post-kexec-ssh-port) post_kexec_ssh_port=$2 shift @@ -396,7 +403,7 @@ SSH fi ssh_ <