def _set_graphical_boot_args(self): """Set up the graphical boot.""" args = [] try: import rpm except ImportError: pass else: util.resetRpmDb() ts = rpm.TransactionSet(conf.target.system_root) # Only add "rhgb quiet" on non-s390, non-serial installs. if util.isConsoleOnVirtualTerminal() \ and (ts.dbMatch('provides', 'rhgb').count() or ts.dbMatch('provides', 'plymouth').count()): args = ["rhgb", "quiet"] self.boot_args.update(args) self.dracut_args.update(args)
def _set_graphical_boot_args(self): """Set up the graphical boot.""" args = [] try: import rpm except ImportError: pass else: util.resetRpmDb() ts = rpm.TransactionSet(util.getSysroot()) # Only add "rhgb quiet" on non-s390, non-serial installs. if util.isConsoleOnVirtualTerminal() \ and (ts.dbMatch('provides', 'rhgb').count() or ts.dbMatch('provides', 'plymouth').count()): args = ["rhgb", "quiet"] self.boot_args.update(args) self.dracut_args.update(args)