We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f63320 commit c92ddabCopy full SHA for c92ddab
src/nixos-anywhere.sh
@@ -501,6 +501,10 @@ nixosInstall() {
501
fi
502
503
step Installing NixOS
504
+ maybeReboot=""
505
+ if [[ ${phases[reboot]-} == 1 ]]; then
506
+ maybeReboot="nohup sh -c 'sleep 6 && reboot' >/dev/null &"
507
+ fi
508
ssh_ sh <<SSH
509
set -eu ${enable_debug}
510
# when running not in nixos we might miss this directory, but it's needed in the nixos chroot during installation
@@ -527,6 +531,7 @@ if command -v zpool >/dev/null && [ "\$(zpool list)" != "no pools available" ];
527
531
umount -Rv /mnt/
528
532
zpool export -a || true
529
533
534
+${maybeReboot}
530
535
SSH
536
537
}
0 commit comments