Skip to content

Commit

Permalink
Merge branch 'main' into fix/terraform-install
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Jun 30, 2024
2 parents c47d898 + c20787a commit 2d3601a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nixos-anywhere.sh
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ if [ ${copy_host_keys-n} = "y" ]; then
done
fi
nixos-install --no-root-passwd --no-channel-copy --system "$nixos_system"
if command -v zpool >/dev/null; then
if command -v zpool >/dev/null && [ "\$(zpool list)" != "no pools available" ]; then
# we always want to export the zfs pools so people can boot from it without force import
umount -Rv /mnt/
zpool export -a || true
Expand Down

0 comments on commit 2d3601a

Please sign in to comment.