def initExceptionHandling(anaconda): fileList = [ "/tmp/anaconda.log", "/tmp/packaging.log", "/tmp/program.log", "/tmp/storage.log", "/tmp/ifcfg.log", "/tmp/yum.log", ROOT_PATH + "/root/install.log", "/proc/cmdline" ] if flags.flags.livecdInstall: fileList.extend(["/var/log/messages"]) else: fileList.extend(["/tmp/syslog"]) if anaconda.opts and anaconda.opts.ksfile: fileList.extend([anaconda.opts.ksfile]) conf = Config( programName="anaconda", programVersion=isys.getAnacondaVersion(), programArch=os.uname()[4], attrSkipList=[ "_intf._actions", "_intf._currentAction._xklwrapper", "_intf._currentAction.language.translations", "_intf._currentAction.language.locales", "_intf._currentAction._spokes[\"PasswordSpoke\"]._oldweak", "_intf._currentAction._spokes[\"PasswordSpoke\"]._password", "_intf._currentAction._spokes[\"UserSpoke\"]._password", "_intf._currentAction._spokes[\"UserSpoke\"]._oldweak", "_intf.storage.bootloader.password", "_intf.storage.data", "_intf.storage.encryptionPassphrase", "_bootloader.encrypted_password", "_bootloader.password", "payload._groups", "payload._yum" ], localSkipList=["passphrase", "password", "_oldweak", "_password"], fileList=fileList) conf.register_callback("lsblk_output", lsblk_callback, attchmnt_only=True) conf.register_callback("nmcli_dev_list", nmcli_dev_list_callback, attchmnt_only=True) # provide extra information for libreport conf.register_callback("type", lambda: "anaconda", attchmnt_only=True) if not product.isFinal: conf.register_callback("release_type", lambda: "pre-release", attchmnt_only=True) handler = AnacondaExceptionHandler(conf, anaconda.intf.meh_interface, ReverseExceptionDump, anaconda.intf.tty_num) handler.install(anaconda) return conf
def initExceptionHandling(anaconda): fileList = [ "/tmp/anaconda.log", "/tmp/lvmout", "/tmp/resize.out", "/tmp/program.log", "/tmp/storage.log", "/tmp/yum.log", anaconda.rootPath + "/root/install.log", anaconda.rootPath + "/root/upgrade.log", "/proc/cmdline" ] if flags.livecdInstall: fileList.extend(["/var/log/dmesg"]) else: fileList.extend(["/tmp/syslog"]) if anaconda.opts and anaconda.opts.ksfile: fileList.extend([anaconda.opts.ksfile]) conf = Config(programName="anaconda", programVersion=isys.getAnacondaVersion(), attrSkipList=[ "backend.ayum", "backend.dlpkgs", "accounts", "bootloader.password", "comps", "dispatch", "hdList", "ksdata", "instLanguage.font", "instLanguage.kbd", "instLanguage.info", "instLanguage.localeInfo", "instLanguage.nativeLangNames", "instLanguage.tz", "keyboard._mods._modelDict", "keyboard.modelDict", "storage.encryptionPassphrase", "users.rootPassword", "tmpData", "intf.icw.buff", "intf.icw.currentWindow.storage.encryptionPassphrase", "intf.icw.stockButtons", ], localSkipList=["passphrase", "password"], fileList=fileList) handler = AnacondaExceptionHandler(conf, anaconda.intf, ReverseExceptionDump) handler.install(anaconda) return conf
def initExceptionHandling(anaconda): fileList = [ "/tmp/anaconda.log", "/tmp/program.log", "/tmp/storage.log", "/tmp/ifcfg.log", "/tmp/yum.log", ROOT_PATH + "/root/install.log", ROOT_PATH + "/root/upgrade.log", "/proc/cmdline" ] if flags.livecdInstall: fileList.extend(["/var/log/messages"]) else: fileList.extend(["/tmp/syslog"]) if anaconda.opts and anaconda.opts.ksfile: fileList.extend([anaconda.opts.ksfile]) conf = Config(programName="anaconda", programVersion=isys.getAnacondaVersion(), attrSkipList=[ "backend.ayum", "backend.dlpkgs", "accounts", "bootloader.password", "comps", "dispatch", "hdList", "ksdata", "instLanguage.font", "instLanguage.kbd", "instLanguage.info", "instLanguage.localeInfo", "instLanguage.nativeLangNames", "instLanguage.tz", "keyboard._mods._modelDict", "keyboard.modelDict", "storage.encryptionPassphrase", "users.rootPassword", "tmpData", "intf.icw.buff", "intf.icw.currentWindow.storage.encryptionPassphrase", "intf.icw.stockButtons", ], localSkipList=[ "passphrase", "password" ], fileList=fileList) handler = AnacondaExceptionHandler(conf, anaconda.intf, ReverseExceptionDump) handler.install(anaconda) return conf