JavaScriptDude
Dabbler
- Joined
- Nov 5, 2011
- Messages
- 22
I have a need to mount using nullfs for a jail in FreeNAS and want this mount to be automatically set up at boot of the jail. I have not had luck finding a clean documented way of doing this that worked. I did play around with the fstab under the jails meta folder but no luck that way.
My workaround was to alter a read only script called jail-post-start located under /mnt/<ZVOL>/jails/.<JAIL_ID>.meta and added mount_nullfs ... to the end of this script. This worked for me but as its not documented, I'm not very comfortable with it.
1) What is the proper way of doing this type of mount for a jail so it comes up automatically at boot?
2) Is it ok for users to edit the jail* hook scripts located in the jails meta directory?
My workaround was to alter a read only script called jail-post-start located under /mnt/<ZVOL>/jails/.<JAIL_ID>.meta and added mount_nullfs ... to the end of this script. This worked for me but as its not documented, I'm not very comfortable with it.
1) What is the proper way of doing this type of mount for a jail so it comes up automatically at boot?
2) Is it ok for users to edit the jail* hook scripts located in the jails meta directory?