diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2013-09-12 11:34:12 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-09-17 17:39:53 +0100 |
commit | cf59b4cd9f85631d4c38d6df05e7e432fca5a8f0 (patch) | |
tree | f36a5bb978957daccc890caedb1d4b95cc710e6f /tools/python | |
parent | d3900dea28f9ab8207c35365b5fee2058b68fe91 (diff) | |
download | xen-cf59b4cd9f85631d4c38d6df05e7e432fca5a8f0.tar.gz xen-cf59b4cd9f85631d4c38d6df05e7e432fca5a8f0.tar.bz2 xen-cf59b4cd9f85631d4c38d6df05e7e432fca5a8f0.zip |
tools: disable xend build by default
Add big warnings to configure, xend initscript and xm.
The big xm warning is displayed once (per boot, or per tmpreaper clean),
afterwards a single line warning is displayed.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/python')
-rwxr-xr-x | tools/python/xen/xm/xm | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/tools/python/xen/xm/xm b/tools/python/xen/xm/xm index f4fd200346..458f219e10 100755 --- a/tools/python/xen/xm/xm +++ b/tools/python/xen/xm/xm @@ -1,7 +1,20 @@ #!/usr/bin/env python # -*- mode: python; -*- -import sys +import sys, os.path from xen.xm import main +print("WARNING: xend/xm is deprecated.") + +if not os.path.exists("/tmp/xm-deprecation-long-warning"): + print(""" +xend is deprecated and scheduled for removal. Please migrate to another +toolstack ASAP. + +See http://wiki.xen.org/wiki/Choice_of_Toolstacks for information on +other alternatives, including xl which is designed to be a drop in +replacement for xm (http://wiki.xen.org/wiki/XL). +""") + open("/tmp/xm-deprecation-long-warning", "w").close() + main.main(sys.argv) |