#!/usr/bin/python2.7 -E # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved. '''Main launcher for Automated Installer''' import sys from solaris_install.ai.client import auto_install if __name__ == '__main__': try: ai = auto_install.AutoInstall(sys.argv[1:]) ai.perform_autoinstall() sys.exit(ai.exitval) except Exception, e: print "ERROR: an exception occurred.\n" print "\n".join(["%s%s" % (" ", l) for l in str(e).splitlines()]) print "\nPlease check logs for further information." sys.exit(auto_install.AutoInstall.AI_EXIT_FAILURE) except KeyboardInterrupt: pass