def apply(self): """Apply all of our settings.""" self._update_network_data() if self._apply: self._apply = False from pyanaconda.packaging import payloadMgr payloadMgr.restartThread(self.storage, self.data, self.payload, self.instclass, checkmount=False)
def apply(self): """Apply all of our settings.""" self._update_network_data() log.debug("network: apply ksdata %s", self.data.network) if self._apply: self._apply = False if ANACONDA_ENVIRON in flags.environs: from pyanaconda.packaging import payloadMgr payloadMgr.restartThread(self.storage, self.data, self.payload, self.instclass, checkmount=False)
def unset_source(self): """Unset an already selected source method. Unset the source in kickstart and notify the payload so that it can correctly release all related resources (unmount iso files, drop caches, etc.). """ self._clean_hdd_iso() self.data.method.method = None payloadMgr.restartThread(self.storage, self.data, self.payload, self.instclass, checkmount=False) threadMgr.wait(constants.THREAD_PAYLOAD_RESTART) threadMgr.wait(constants.THREAD_PAYLOAD)
def apply(self): """ Execute the selections made. """ # If askmethod was provided on the command line, entering the source # spoke wipes that out. if flags.askmethod: flags.askmethod = False # if we had any errors, e.g. from a previous attempt to set the source, # clear them at this point self._error = False payloadMgr.restartThread(self.storage, self.data, self.payload, self.instclass, checkmount=False)
anaconda.mehConfig = exception.initExceptionHandling(anaconda) # add our own additional signal handlers signal.signal(signal.SIGUSR1, lambda signum, frame: exception.test_exception_handling()) signal.signal(signal.SIGUSR2, lambda signum, frame: anaconda.dumpState()) atexit.register(exitHandler, ksdata.reboot, anaconda.storage) from pyanaconda import exception anaconda.mehConfig = exception.initExceptionHandling(anaconda) # Fallback to default for interactive or for a kickstart with no installation method. fallback = not (flags.automatedInstall and ksdata.method.method) payloadMgr.restartThread(anaconda.storage, ksdata, anaconda.payload, anaconda.instClass, fallback=fallback) # check if geolocation should be enabled for this type of installation use_geolocation = True if flags.imageInstall or flags.dirInstall or flags.automatedInstall: use_geolocation = False # and also check if it was not disabled by boot option else: # flags.cmdline.getbool is used as it handles values such as # 0, no, off and also nogeoloc as False # and other values or geoloc not being present as True use_geolocation = flags.cmdline.getbool('geoloc', True) if use_geolocation:
if ksdata.displaymode.displayMode != DISPLAY_MODE_CMDLINE or flags.debug: from pyanaconda import exception anaconda.mehConfig = exception.initExceptionHandling(anaconda) # add our own additional signal handlers signal.signal(signal.SIGUSR1, lambda signum, frame: exception.test_exception_handling()) signal.signal(signal.SIGUSR2, lambda signum, frame: anaconda.dumpState()) atexit.register(exitHandler, ksdata.reboot, anaconda.storage) from pyanaconda import exception anaconda.mehConfig = exception.initExceptionHandling(anaconda) # Fallback to default for interactive or for a kickstart with no installation method. fallback = not (flags.automatedInstall and ksdata.method.method) payloadMgr.restartThread(anaconda.storage, ksdata, anaconda.payload, anaconda.instClass, fallback=fallback) # check if geolocation should be enabled for this type of installation use_geolocation = True if flags.imageInstall or flags.dirInstall or flags.automatedInstall: use_geolocation = False # and also check if it was not disabled by boot option else: # flags.cmdline.getbool is used as it handles values such as # 0, no, off and also nogeoloc as False # and other values or geoloc not being present as True use_geolocation = flags.cmdline.getbool('geoloc', True) if use_geolocation: provider_id = constants.GEOLOC_DEFAULT_PROVIDER # check if a provider was specified by an option