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.
2 parents c1d2893 + 5f9948d commit 12d5c4dCopy full SHA for 12d5c4d
src/nixos-anywhere.sh
@@ -476,7 +476,9 @@ if [[ ${copy_host_keys-n} == "y" ]]; then
476
fi
477
nixos-install --no-root-passwd --no-channel-copy --system "$nixos_system"
478
if command -v zpool >/dev/null; then
479
- zpool export -a || : # we always want to export the zfs pools so people can boot from it without force import
+ # we always want to export the zfs pools so people can boot from it without force import
480
+ umount -Rv /mnt/
481
+ zpool export -a || true
482
483
# We will reboot in background so we can cleanly finish the script before the hosts go down.
484
# This makes integration into scripts easier
0 commit comments