ezjail and zfs in FreeBSD>=9.1
Hello.
It seems that ezjail 3.3 doesn't set allow.mount allow.mount.zfs when
delegates zfs fs to a jail.
Changing
# Attach ZFS-datasets to the jail
for zfs in ${ezjail_zfs_datasets}; do
/sbin/zfs jail ${ezjail_id} ${zfs} || echo -n "Error: ${zfs} could not
be configured"
done
to
# Attach ZFS-datasets to the jail
[ -z "${ezjail_zfs_datasets}" ] || /usr/sbin/jail -m jid=${ezjail_id}
allow.mount allow.mount.zfs
for zfs in ${ezjail_zfs_datasets}; do
/sbin/zfs jail ${ezjail_id} ${zfs} || echo -n "Error: ${zfs} could
not be configured"
done
in /usr/local/etc/rc.d/ezjail
solves the issue for me.
--
Best regards,
Alexander Pyhalov,
system administrator of Computer Center of Southern Federal University
_______________________________________________
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"