anaconda.dbus_launcher.start() except TimeoutError as e: stdout_log.error(str(e)) anaconda.dbus_launcher.stop() util.ipmi_report(constants.IPMI_ABORTED) time.sleep(10) sys.exit(1) # Collect all addon paths addon_paths = collect_addon_paths(constants.ADDON_PATHS) # If we were given a kickstart file on the command line, parse (but do not # execute) that now. Otherwise, load in defaults from kickstart files # shipped with the installation media. ksdata = startup_utils.parse_kickstart(opts, addon_paths, pass_to_boss=True) # Pick up any changes from interactive-defaults.ks that would # otherwise be covered by the dracut KS parser. from pyanaconda.modules.common.constants.services import STORAGE from pyanaconda.modules.common.constants.objects import BOOTLOADER bootloader_proxy = STORAGE.get_proxy(BOOTLOADER) if opts.extlinux: bootloader_proxy.SetBootloaderType(constants.BOOTLOADER_TYPE_EXTLINUX) if opts.leavebootorder: bootloader_proxy.SetKeepBootOrder(True) if opts.nombr:
time.sleep(10) sys.exit(1) # Find a kickstart file. kspath = startup_utils.find_kickstart(opts) log.info("Found a kickstart file: %s", kspath) # Run %pre scripts. startup_utils.run_pre_scripts(kspath) # Collect all addon paths from pyanaconda.addons import collect_addon_paths addon_paths = collect_addon_paths(constants.ADDON_PATHS) # Parse the kickstart file. ksdata = startup_utils.parse_kickstart(kspath, addon_paths, strict_mode=opts.ksstrict) # Pick up any changes from interactive-defaults.ks that would # otherwise be covered by the dracut KS parser. from pyanaconda.modules.common.constants.services import STORAGE from pyanaconda.modules.common.constants.objects import BOOTLOADER bootloader_proxy = STORAGE.get_proxy(BOOTLOADER) if opts.leavebootorder: bootloader_proxy.SetKeepBootOrder(True) if opts.nombr: bootloader_proxy.SetKeepMBR(True) if ksdata.rescue.rescue: flags.rescue_mode = True
try: anaconda.dbus_launcher.start() except TimeoutError as e: stdout_log.error(str(e)) anaconda.dbus_launcher.stop() util.ipmi_report(constants.IPMI_ABORTED) time.sleep(10) sys.exit(1) # Collect all addon paths addon_paths = collect_addon_paths(constants.ADDON_PATHS) # If we were given a kickstart file on the command line, parse (but do not # execute) that now. Otherwise, load in defaults from kickstart files # shipped with the installation media. ksdata = startup_utils.parse_kickstart(opts, addon_paths, pass_to_boss=True) # Pick up any changes from interactive-defaults.ks that would # otherwise be covered by the dracut KS parser. from pyanaconda.modules.common.constants.services import STORAGE from pyanaconda.modules.common.constants.objects import BOOTLOADER bootloader_proxy = STORAGE.get_proxy(BOOTLOADER) if bootloader_proxy.BootloaderType == constants.BOOTLOADER_TYPE_EXTLINUX: flags.extlinux = True if ksdata.rescue.rescue: flags.rescue_mode = True # reboot with kexec if ksdata.reboot.kexec:
# auditd will turn into a daemon and exit. Ignore startup errors try: iutil.execWithRedirect("/sbin/auditd", []) except OSError: pass log.info("anaconda called with cmdline = %s", sys.argv) log.info("Default encoding = %s ", sys.getdefaultencoding()) # Collect all addon paths addon_paths = collect_addon_paths(constants.ADDON_PATHS) # If we were given a kickstart file on the command line, parse (but do not # execute) that now. Otherwise, load in defaults from kickstart files # shipped with the installation media. ksdata = startup_utils.parse_kickstart(opts, addon_paths) # Pick up any changes from interactive-defaults.ks that would # otherwise be covered by the dracut KS parser. if ksdata.bootloader.extlinux: flags.extlinux = True if ksdata.rescue.rescue: flags.rescue_mode = True # reboot with kexec if ksdata.reboot.kexec: flags.kexec = True # Some kickstart commands must be executed immediately, as they affect # how anaconda operates. ksdata.logging.execute()
# auditd will turn into a daemon and exit. Ignore startup errors try: util.execWithRedirect("/sbin/auditd", []) except OSError: pass log.info("anaconda called with cmdline = %s", sys.argv) log.info("Default encoding = %s ", sys.getdefaultencoding()) # Collect all addon paths addon_paths = collect_addon_paths(constants.ADDON_PATHS) # If we were given a kickstart file on the command line, parse (but do not # execute) that now. Otherwise, load in defaults from kickstart files # shipped with the installation media. ksdata = startup_utils.parse_kickstart(opts, addon_paths, pass_to_boss=flags.run_boss) # Pick up any changes from interactive-defaults.ks that would # otherwise be covered by the dracut KS parser. if ksdata.bootloader.extlinux: flags.extlinux = True if ksdata.rescue.rescue: flags.rescue_mode = True # reboot with kexec if ksdata.reboot.kexec: flags.kexec = True # Some kickstart commands must be executed immediately, as they affect # how anaconda operates. ksdata.logging.execute()