vzctl start/runscript: add ability to set per-CT osrelease
Some distros (like recent Fedora versions) expect a kernel
version to be x.y.z or newer, and won't work with older kernels.
Our kernels are usually sufficiently patched to work with new
userspace, but this check for kernel version requires some
trickery.
Introduce /etc/vz/osrelease.conf to have these requirements
configurable. Use new /dev/vzctl ioctl to set per-CT osrelease
field, based on distro name and contents of osrelease.conf
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
10 files changed