ezjail and zfs in FreeBSD>=9.1
Alexander Pyhalov
alp at rsu.ru
Wed Feb 19 09:14:17 UTC 2014
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
More information about the freebsd-stable
mailing list