mirror of
https://github.com/nix-community/nixos-anywhere.git
synced 2024-09-11 08:35:24 +03:00
Merge pull request #239 from nix-community/zfs-fix
umount /mnt prior to exporting zpool
This commit is contained in:
commit
12d5c4dd3e
@ -476,7 +476,9 @@ if [[ ${copy_host_keys-n} == "y" ]]; then
|
||||
fi
|
||||
nixos-install --no-root-passwd --no-channel-copy --system "$nixos_system"
|
||||
if command -v zpool >/dev/null; then
|
||||
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
|
||||
umount -Rv /mnt/
|
||||
zpool export -a || true
|
||||
fi
|
||||
# We will reboot in background so we can cleanly finish the script before the hosts go down.
|
||||
# This makes integration into scripts easier
|
||||
|
Loading…
Reference in New Issue
Block a user