From b074592dd5eb7c692182eef128514bca4bbf1c9c Mon Sep 17 00:00:00 2001 From: Mike khiretskiy Date: Mon, 3 Feb 2014 16:08:37 +0400 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=BE=20=D0=BE=D0=BF=D1=80=D0=B5=D0=B4=D0=B5=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20os=5Finstall=5Fgrub=5Fterminal?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install/variables/system.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/install/variables/system.py b/install/variables/system.py index a9193b6..f810ea8 100644 --- a/install/variables/system.py +++ b/install/variables/system.py @@ -656,6 +656,10 @@ class VariableOsInstallGrubTerminal(Variable): 'etc/default/grub') if getValueFromConfig(grubDefault,'GRUB_TERMINAL') == 'console': return 'console' + grubCfg = '/boot/grub/grub.cfg' + if re.search('^terminal_output\s*console',readFile(grubCfg),re.M): + return 'console' + return 'gfxterm' def choice(self):