Best practise for handling ports tree with iocage managed basejails

nimo

New Member


Messages: 2

Hi,

What's the best practise to handle the prots tree with iocage managed basejails?

Currently I am manually nullfs mounting the host systems /usr/ports everytime I need it in each jail, but as the number of jails are growing this feels more and more cumbersome.


Please advice!


Thanks in advance!
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 12,338
Messages: 38,857

You could NFS mount them or add it to each jail's /etc/fstab.<jail> so it's automatically mounted when you start a jail.
 

chrbr

Aspiring Daemon

Reaction score: 363
Messages: 882

Dear SirDice,
this sounds interesting. Currently I have lines as
Code:
/usr/local/poudriere/ports/local /usr/jails/playground/usr/ports nullfs rw late 0 0
in my /etc/fstab. How should it appear in playgrounds jail?
 

SirDice

Administrator
Staff member
Administrator
Moderator

Reaction score: 12,338
Messages: 38,857

Exactly the same. You can mount them read-only if you want. You just have to make sure WRKDIRPREFIX is set to somewhere the jail can write.
 
Top