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>
This commit is contained in:
Ian Campbell committed 2013-09-17 17:39:53 +01:00
1 parent d3900dea28
commit cf59b4cd9f
4 files changed
+57 -4

No files matched your search

+14 -1
View File
@@ -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)
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.