From cf59b4cd9f85631d4c38d6df05e7e432fca5a8f0 Mon Sep 17 00:00:00 2001 From: Ian Campbell Date: Thu, 12 Sep 2013 11:34:12 +0100 Subject: 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 Acked-by: Ian Jackson --- tools/python/xen/xm/xm | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'tools/python') 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) -- cgit v1.2.3