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 c40492c + a9e9b70 commit 11d3803Copy full SHA for 11d3803
src/nixos-anywhere.sh
@@ -423,7 +423,9 @@ export PATH=\$PATH:/run/current-system/sw/bin
423
mkdir -p /mnt/tmp
424
chmod 777 /mnt/tmp
425
nixos-install --no-root-passwd --no-channel-copy --system "$nixos_system"
426
-zpool export -a || : # we always want to export the zfs pools so people can boot from it without force import
+if command -v zpool >/dev/null; then
427
+ zpool export -a || : # we always want to export the zfs pools so people can boot from it without force import
428
+fi
429
# We will reboot in background so we can cleanly finish the script before the hosts go down.
430
# This makes integration into scripts easier
431
nohup bash -c '${maybe_reboot}' >/dev/null &
0 commit comments