[Devel] [RFC] vzctl 'make install' target

Kir Kolyshkin kir at openvz.org
Thu Jun 29 02:03:12 PDT 2006


Problem: currently vzctl's "make install" install some redhat-specific 
stuff, like /etc/sysconfig/network-scripts/*venet* files and 
/etc/init.d/vz initscript. This creates a problem for distros such as 
Gentoo and Debian. Currently, for example, Gentoo solves that by 
patching Makefile.

We want to fix it in next vzctl release. There are several solutions 
possible:

(1) rename 'install' target to install-redhat, and add generic 'install' 
target which will not install initscript and 
/etc/sysconfig/network-scripts/*venet0* stuff

(2) leave install target as is and add 'install-generic' target which 
will do the same as 'install' from (1)

(3) try to determine distro during runtime, from Makefile itself, and 
act appropriately

(4) Pass some params to Makefile in environment, like SKIP_NETSCRIPTS or 
SKIP_INITSCRIPT

(5) a variation of (1) -- add install-generic and install-redhat target,
do nothing but print a list of possible install-* target on invocation 
of 'make install'.

I prefer #5. What do people think? I am especially interested in hearing 
from Debian and Gentoo maintainers.




More information about the Devel mailing list