comparison 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
comparison
equal deleted inserted replaced
329:2623f7e775e3 330:8dbd11726ee5
742 _root_canmount="${_opt_canmount}" 742 _root_canmount="${_opt_canmount}"
743 else 743 else
744 _root_canmount="-o canmount=off" 744 _root_canmount="-o canmount=off"
745 fi 745 fi
746 if [ -n "${_opt_mountpoint}" ]; then 746 if [ -n "${_opt_mountpoint}" ]; then
747 zfs send -Lec -p -v "${_name}" | zfs receive ${_opt_nomount} -v ${_root_canmount} -o "mountpoint=${_opt_mountpoint}" "${_ds_target}${_relative_name}" 747 zfs send -Lec -p -v "${_name}" | zfs receive ${_opt_nomount} -v ${_root_canmount} -o "mountpoint=${_opt_mountpoint}" -o readonly=off "${_ds_target}${_relative_name}"
748 else 748 else
749 zfs send -Lec -p -v "${_name}" | zfs receive ${_opt_nomount} -v ${_root_canmount} -x mountpoint "${_ds_target}${_relative_name}" 749 zfs send -Lec -p -v "${_name}" | zfs receive ${_opt_nomount} -o readonly=off -v ${_root_canmount} -x mountpoint "${_ds_target}${_relative_name}"
750 fi 750 fi
751 else 751 else
752 # 752 #
753 # Children 753 # Children
754 # 754 #