commit | 1069bc3d61b318e3c3b971263c695ae1f07abe2a | [log] [download] |
---|---|---|
author | Kir Kolyshkin <kir@openvz.org> | Sat Aug 18 18:25:18 2012 +0400 |
committer | Kir Kolyshkin <kir@openvz.org> | Sat Aug 18 18:34:09 2012 +0400 |
tree | 3bf86a7646bd04ad015d10fd8593f48fcb4c42bc | |
parent | 252e4188157b5633f0464cc9723d2799c7e38277 [diff] |
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>