Добавлен перенос параметра загрузки ядра nomodeset

develop 3.6.7.5
parent 9389352c6e
commit 21cb6ac55b

@ -277,6 +277,14 @@ class VariableOsInstallKernelBfqSet(ReadonlyVariable):
return "off" return "off"
class VariableOsInstallNomodeset(Variable):
type = "bool"
def get(self):
cmdLine = '/proc/cmdline'
if 'nomodeset' in readFile(cmdLine):
return "on"
return "off"
class VariableOsInstallKernelAttr(Variable): class VariableOsInstallKernelAttr(Variable):
""" """
Install kernel attributes Install kernel attributes
@ -285,6 +293,8 @@ class VariableOsInstallKernelAttr(Variable):
def get(self): def get(self):
def generate(): def generate():
# 5 sec for usb hdd boot # 5 sec for usb hdd boot
if self.GetBool('os_install_nomodeset'):
yield "nomodeset"
if self.Get('os_install_root_type') == 'usb-hdd': if self.Get('os_install_root_type') == 'usb-hdd':
yield "scandelay=5" yield "scandelay=5"
if (self.GetBool('os_install_mdadm_set') or if (self.GetBool('os_install_mdadm_set') or

Loading…
Cancel
Save