Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Feb 2014 13:14:13 +0400
From:      Alexander Pyhalov <alp@rsu.ru>
To:        ezjail@erdgeist.org, freebsd-stable@freebsd.org
Subject:   ezjail and zfs in FreeBSD>=9.1
Message-ID:  <530475E5.3010203@rsu.ru>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?530475E5.3010203>