from pyanaconda import keyboard # we are past the --version and --help shortcut so we can import display & # startup_utils, which import Blivet, without slowing down anything critical from pyanaconda import display from pyanaconda import startup_utils from pyanaconda import rescue from pyanaconda import geoloc from pyanaconda.iutil import ProxyString, ProxyStringError # Print the usual "startup note" that contains Anaconda version # and short usage & bug reporting instructions. # The note should in most cases end on TTY1. startup_utils.print_startup_note(options=opts) from pyanaconda.anaconda import Anaconda anaconda = Anaconda() iutil.setup_translations() # reset python's default SIGINT handler signal.signal(signal.SIGINT, signal.SIG_IGN) signal.signal(signal.SIGTERM, lambda num, frame: sys.exit(1)) # synchronously-delivered signals such as SIGSEGV and SIGILL cannot be # handled properly from python, so install signal handlers from the C # function in isys. isys.installSyncSignalHandlers() setup_environment() # make sure we have /var/log soon, some programs fail to start without it iutil.mkdirChain("/var/log")
from pyanaconda import keyboard # we are past the --version and --help shortcut so we can import display & # startup_utils, which import Blivet, without slowing down anything critical from pyanaconda import display from pyanaconda import startup_utils from pyanaconda import rescue from pyanaconda import geoloc from pyanaconda.core.util import ProxyString, ProxyStringError # Print the usual "startup note" that contains Anaconda version # and short usage & bug reporting instructions. # The note should in most cases end on TTY1. startup_utils.print_startup_note(options=opts) from pyanaconda.anaconda import Anaconda anaconda = Anaconda() util.setup_translations() # reset python's default SIGINT handler signal.signal(signal.SIGINT, signal.SIG_IGN) signal.signal(signal.SIGTERM, lambda num, frame: sys.exit(1)) # synchronously-delivered signals such as SIGSEGV and SIGILL cannot be # handled properly from python, so install signal handlers from the C # function in isys. isys.installSyncSignalHandlers() setup_environment() # make sure we have /var/log soon, some programs fail to start without it util.mkdirChain("/var/log")
if not arch.is_s390(): if "TMUX" in os.environ and os.environ.get("TERM") == "screen": print(shell_and_tmux_note) else: print(shell_only_note) # TMUX is not running # ...but there is apparently TMUX during the manual installation on s390! elif not opts.ksfile: print(tmux_only_note) # but not during kickstart installation # no need to tell users how to switch to text mode # if already in text mode if opts.display_mode == 'g': print(text_mode_note) print(separate_attachements_note) from pyanaconda.anaconda import Anaconda anaconda = Anaconda() iutil.setup_translations() # reset python's default SIGINT handler signal.signal(signal.SIGINT, signal.SIG_IGN) signal.signal(signal.SIGTERM, lambda num, frame: sys.exit(1)) # synchronously-delivered signals such as SIGSEGV and SIGILL cannot be # handled properly from python, so install signal handlers from the C # function in isys. isys.installSyncSignalHandlers() setupEnvironment() # make sure we have /var/log soon, some programs fail to start without it iutil.mkdirChain("/var/log")
def __init__(self): self._anaconda = Anaconda()