if os.geteuid() != 0: stdout_log.error("anaconda must be run as root.") sys.exit(1) # check if input kickstart should be saved if flags.nosave_input_ks: log.warning("Input kickstart will not be saved to the installed system due to the nosave option.") util.touch('/tmp/NOSAVE_INPUT_KS') # check if logs should be saved if flags.nosave_logs: log.warning("Installation logs will not be saved to the installed system due to the nosave option.") util.touch('/tmp/NOSAVE_LOGS') # see if we're on s390x and if we've got an ssh connection if startup_utils.prompt_for_ssh(opts): sys.exit(0) log.info("%s %s", sys.argv[0], util.get_anaconda_version_string(build_time_version=True)) if os.path.exists("/tmp/updates"): log.info("Using updates in /tmp/updates/ from %s", opts.updateSrc) # warn users that they should use inst. prefix all the time for arg in depr: stdout_log.warning("Boot argument '%s' is deprecated and will be removed in the future. " "Please use 'inst.%s' instead.", arg, arg) from pyanaconda import isys util.ipmi_report(constants.IPMI_STARTED)
"Input kickstart will not be saved to the installed system due to the nosave option." ) util.touch('/tmp/NOSAVE_INPUT_KS') # check if logs should be saved if flags.nosave_logs: log.warning( "Installation logs will not be saved to the installed system due to the nosave option." ) util.touch('/tmp/NOSAVE_LOGS') # see if we're on s390x and if we've got an ssh connection uname = os.uname() if uname[4] == 's390x': if 'TMUX' not in os.environ and 'ks' not in flags.cmdline and conf.target.is_hardware: startup_utils.prompt_for_ssh() sys.exit(0) log.info("%s %s", sys.argv[0], util.get_anaconda_version_string(build_time_version=True)) if os.path.exists("/tmp/updates"): log.info("Using updates in /tmp/updates/ from %s", opts.updateSrc) # TODO: uncomment this when we're sure that we're doing the right thing # with flags.cmdline *everywhere* it appears... #for arg in depr: # stdout_log.warn("Boot argument '%s' is deprecated. " # "In the future, use 'inst.%s'.", arg, arg) from pyanaconda import isys
# check if input kickstart should be saved if flags.nosave_input_ks: log.warning("Input kickstart will not be saved to the installed system due to the nosave option.") util.touch('/tmp/NOSAVE_INPUT_KS') # check if logs should be saved if flags.nosave_logs: log.warning("Installation logs will not be saved to the installed system due to the nosave option.") util.touch('/tmp/NOSAVE_LOGS') # see if we're on s390x and if we've got an ssh connection uname = os.uname() if uname[4] == 's390x': if 'TMUX' not in os.environ and 'ks' not in flags.cmdline and not conf.target.is_image: startup_utils.prompt_for_ssh() sys.exit(0) log.info("%s %s", sys.argv[0], startup_utils.get_anaconda_version_string(build_time_version=True)) if os.path.exists("/tmp/updates"): log.info("Using updates in /tmp/updates/ from %s", opts.updateSrc) # TODO: uncomment this when we're sure that we're doing the right thing # with flags.cmdline *everywhere* it appears... #for arg in depr: # stdout_log.warn("Boot argument '%s' is deprecated. " # "In the future, use 'inst.%s'.", arg, arg) from pyanaconda import isys util.ipmi_report(constants.IPMI_STARTED)