package building failure irritation

Dag-Erling Smørgrav des at des.no
Tue Mar 2 10:00:51 UTC 2010


xorquewasp at googlemail.com writes:
> Basically, I have a ton of jails and each jail mounts a shared 'tmp',

That's not a good idea, there are too many opportunities for conflicts
(software that creates sockets and state directories with non-randomized
names in /tmp) and might even allow a compromised jail to compromise the
others.

> and possibly unshared 'pkg' 'work' 'distfiles' and 'ports'
> directories:
>
>   /storage/jails/8.0/x86_64/mk4/pkg   /jail/8.0-amd64-mk4/pkg        nullfs rw
>   /storage/jails/8.0/x86_64/mk4/work  /jail/8.0-amd64-mk4/work       nullfs rw
>   /storage/distfiles                  /jail/8.0-amd64-mk4/distfiles  nullfs rw
>   /storage/ports                      /jail/8.0-amd64-mk4/ports      nullfs ro
>   /storage/shared_tmp                 /jail/8.0-amd64-mk4/shared_tmp nullfs rw

zfs set mountpoint=/jail/8.0-amd64-mk4 storage/jails/8.0/x86_64/mk4

Children of storage/jails/8.0/x86_64/mk4 will inherit this property, so
they will automatically appear where you expect; alternatively, you can
set the mountpoint property for each individual fileset.

DES
-- 
Dag-Erling Smørgrav - des at des.no


More information about the freebsd-hackers mailing list