<div dir="ltr">Hello devs,<div><br></div><div><div>In my project I wanted to make every OpenVZ container to use for a private directory (VE_PRIVATE) separated block device (HDD partition, lvm volume, NFS share, etc.). To use wrapper script over vzctl was one option, but PRE_CREATE hook, in which to create, mkfs and mount LVM volume would be even better.</div><div><br></div><div>So, I&#39;m not a developer, but using code from POST_CREATE hook I was able to create the PRE_CREATE one, which can be used as the other hooks e.g.</div><div><br></div><div>add in /etc/vz/dists/ default</div><div>PRE_CREATE = precreate.sh</div><div><br></div><div>and during</div><div>vzctl --create ...</div><div><br></div><div>it will call /etc/vz/dists/scripts/precreate.sh with VEID as argument<br></div></div><div><br></div><div><div>Currently I have a patch to vzctl master branch which implements this PRE_CREATE hook and I&#39;m ready to share it.</div><div><br></div><div>So my questions are:</div><div>- Do you find this for interesting and/or useful?</div><div>- If &#39;yes&#39;, what is the right way to send this patch: here, by email; or to create pull request in git repo?</div><div><br></div><div>Best regards!</div></div><div><br></div><div>Nikolay Tenev</div><div><br></div></div>