mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-07-07 04:47:00 +03:00
don't attempt to export zpool if there is none
This commit is contained in:
parent
ce18c086d8
commit
c20787adb1
|
@ -510,7 +510,7 @@ if [ ${copy_host_keys-n} = "y" ]; then
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
nixos-install --no-root-passwd --no-channel-copy --system "$nixos_system"
|
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
|
# we always want to export the zfs pools so people can boot from it without force import
|
||||||
umount -Rv /mnt/
|
umount -Rv /mnt/
|
||||||
zpool export -a || true
|
zpool export -a || true
|
||||||
|
|
Loading…
Reference in New Issue
Block a user