mirror of
https://github.com/numtide/nixos-anywhere.git
synced 2024-10-04 00:18:58 +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
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user