vz_open(): fix OpenVZ kernel detection

Instead of looking for /dev/vzctl presense (which is most probably there because
vzctl.rpm supplies it and vz initscript creates it), check for /proc/vz.

Also:
* Print a message that we assume non-openvz kernel if /proc/vz is not found.
  This might be annoying, but since it's an experimental feature it's OK for now.

* Simplify the logic of calling *_do_init() functions

Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed