Mercurial > hgrepos > FreeBSD > ports > sysutils > local-bsdtools
diff sbin/ftjail @ 330:8dbd11726ee5
Explicitely set "readonly=off" for the target datasets of a RW skeleton.
Otherwise a readonly=on could be inherited in some cases.
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Wed, 30 Nov 2022 21:59:13 +0100 |
| parents | 2102b46566f0 |
| children | fdbb78c54ffb |
line wrap: on
line diff
--- a/sbin/ftjail Wed Nov 30 21:31:16 2022 +0100 +++ b/sbin/ftjail Wed Nov 30 21:59:13 2022 +0100 @@ -744,9 +744,9 @@ _root_canmount="-o canmount=off" fi if [ -n "${_opt_mountpoint}" ]; then - zfs send -Lec -p -v "${_name}" | zfs receive ${_opt_nomount} -v ${_root_canmount} -o "mountpoint=${_opt_mountpoint}" "${_ds_target}${_relative_name}" + zfs send -Lec -p -v "${_name}" | zfs receive ${_opt_nomount} -v ${_root_canmount} -o "mountpoint=${_opt_mountpoint}" -o readonly=off "${_ds_target}${_relative_name}" else - zfs send -Lec -p -v "${_name}" | zfs receive ${_opt_nomount} -v ${_root_canmount} -x mountpoint "${_ds_target}${_relative_name}" + zfs send -Lec -p -v "${_name}" | zfs receive ${_opt_nomount} -o readonly=off -v ${_root_canmount} -x mountpoint "${_ds_target}${_relative_name}" fi else #
