[Bug 197280] sysutils/cbsd - nullfs automounted portstree in created jail not mounted read-only
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Feb 3 09:42:20 UTC 2015
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=197280
--- Comment #2 from olevole at olevole.ru ---
(In reply to k from comment #0)
If you want /usr/ports ro in jail, do not use "mount_ports" (unset via jset or
jconfig) options and put into fstab.local custom mounts, e.g for jail1:
1) /usr/jails/jails-fstab/fstab.jail1.local:
----
/usr/ports /usr/ports nullfs ro 0 0
/usr/jails/jails-data/jail1-data/usr/ports/distfiles /usr/ports/distfiles
nullfs rw 0 0
---
2) And don't forget to create jail1 distfiles for RW mount above:
---
mkdir -p /usr/jails/jails-data/jail1-data/usr/ports/distfiles
--
I agree that the default behavior should be RO-mount, this will be fixed in the
next version.
PS: Please use the CBSD bugtracker ( https://github.com/olevole/cbsd/issues )
for next time for CBSD-related issue.
Please close this request, this is not ports problem. Thanks.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-ports-bugs
mailing list