JavaScriptDude
Dabbler
- Joined
- Nov 5, 2011
- Messages
- 22
While trying to solve a problem with auto mounting using nullfs(5) on boot of a jail on my FreeNAS box, I came across the hidden meta folder /mnt/<ZVOL>/jails/.<JAIL_ID>.meta which contains several read only hook scripts. After adding a few lines to the jail-post-start script, I was able to solve the problem without issues and the change has been in production for several months.
I scoured the internet for documentation, I found no discussion of these hooks in the .meta folder. Can someone shed some light on the intent of these hooks scripts? Is it safe for admins to alter these scripts by hand to add implementation specific configurations? Are there plans to dynamically overwrite these scripts as a result of changes in a GUI?
The list of hooks in each jail's .meta folder are:
I scoured the internet for documentation, I found no discussion of these hooks in the .meta folder. Can someone shed some light on the intent of these hooks scripts? Is it safe for admins to alter these scripts by hand to add implementation specific configurations? Are there plans to dynamically overwrite these scripts as a result of changes in a GUI?
The list of hooks in each jail's .meta folder are:
- jail-pre-delete
- jail-pre-start
- jail-pre-stop
- jail-post-delete
- jail-post-start
- jail-post-stop