mountpoint=$(zfs get -H -o value mountpoint $(iocage get -p)/iocage) That seems to do the trick, thanks--updated the script.