mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 09:50:37 +00:00
fix kernel options
This commit is contained in:
parent
9c01c1b13f
commit
9695948e3d
6 changed files with 43 additions and 67 deletions
|
@ -234,6 +234,45 @@ class DisablePNIN(Task):
|
|||
info.grub_config['GRUB_CMDLINE_LINUX'].append('biosdevname=0')
|
||||
|
||||
|
||||
class DisableConsoleBlanking(Task):
|
||||
description = 'Disabling Console blanking'
|
||||
phase = phases.system_modification
|
||||
successors = [WriteGrubConfig]
|
||||
|
||||
@classmethod
|
||||
def run(cls, info):
|
||||
info.grub_config['GRUB_CMDLINE_LINUX'].append('consoleblank=0')
|
||||
|
||||
|
||||
class SetIoScheduler(Task):
|
||||
description = 'Set VM optimized IO scheduler'
|
||||
phase = phases.system_modification
|
||||
successors = [WriteGrubConfig]
|
||||
|
||||
@classmethod
|
||||
def run(cls, info):
|
||||
info.grub_config['GRUB_CMDLINE_LINUX'].append('elevator=noop')
|
||||
|
||||
|
||||
class MakeLinuxFastAgain(Task):
|
||||
description = 'make-linux-fast-again.com'
|
||||
phase = phases.system_modification
|
||||
successors = [WriteGrubConfig]
|
||||
|
||||
@classmethod
|
||||
def run(cls, info):
|
||||
info.grub_config['GRUB_CMDLINE_LINUX'].append('noibrs')
|
||||
info.grub_config['GRUB_CMDLINE_LINUX'].append('noibpb')
|
||||
info.grub_config['GRUB_CMDLINE_LINUX'].append('nopti')
|
||||
info.grub_config['GRUB_CMDLINE_LINUX'].append('nospectre_v2')
|
||||
info.grub_config['GRUB_CMDLINE_LINUX'].append('nospectre_v1')
|
||||
info.grub_config['GRUB_CMDLINE_LINUX'].append('l1tf=off')
|
||||
info.grub_config['GRUB_CMDLINE_LINUX'].append('nospec_store_bypass_disable')
|
||||
info.grub_config['GRUB_CMDLINE_LINUX'].append('no_stf_barrier')
|
||||
info.grub_config['GRUB_CMDLINE_LINUX'].append('mds=off')
|
||||
info.grub_config['GRUB_CMDLINE_LINUX'].append('mitigations=off')
|
||||
|
||||
|
||||
class SetGrubTerminalToConsole(Task):
|
||||
description = 'Setting the grub terminal to `console\''
|
||||
phase = phases.system_modification
|
||||
|
|
|
@ -32,15 +32,4 @@ class ConfigureGrub(Task):
|
|||
'console=ttyS0,115200n8',
|
||||
'earlyprintk=ttyS0,115200',
|
||||
'rootdelay=300',
|
||||
'elevator=noop',
|
||||
'noibrs',
|
||||
'noibpb',
|
||||
'nopti',
|
||||
'nospectre_v2',
|
||||
'nospectre_v1',
|
||||
'l1tf=off',
|
||||
'nospec_store_bypass_disable',
|
||||
'no_stf_barrier',
|
||||
'mds=off',
|
||||
'mitigations=off',
|
||||
])
|
||||
|
|
|
@ -70,16 +70,6 @@ class ConfigurePVGrub(Task):
|
|||
info.grub_config['GRUB_CMDLINE_LINUX'].extend([
|
||||
'consoleblank=0',
|
||||
'elevator=noop',
|
||||
'noibrs',
|
||||
'noibpb',
|
||||
'nopti',
|
||||
'nospectre_v2',
|
||||
'nospectre_v1',
|
||||
'l1tf=off',
|
||||
'nospec_store_bypass_disable',
|
||||
'no_stf_barrier',
|
||||
'mds=off',
|
||||
'mitigations=off',
|
||||
])
|
||||
|
||||
|
||||
|
|
|
@ -10,22 +10,8 @@ class ConfigureGrub(Task):
|
|||
|
||||
@classmethod
|
||||
def run(cls, info):
|
||||
info.grub_config['GRUB_CMDLINE_LINUX'].extend([
|
||||
'console=ttyS0,38400n8',
|
||||
'elevator=noop',
|
||||
'consoleblank=0',
|
||||
'elevator=noop',
|
||||
'noibrs',
|
||||
'noibpb',
|
||||
'nopti',
|
||||
'nospectre_v2',
|
||||
'nospectre_v1',
|
||||
'l1tf=off',
|
||||
'nospec_store_bypass_disable',
|
||||
'no_stf_barrier',
|
||||
'mds=off',
|
||||
'mitigations=off',
|
||||
])
|
||||
info.grub_config['GRUB_CMDLINE_LINUX'].append('console=ttyS0,38400n8')
|
||||
info.grub_config['GRUB_CMDLINE_LINUX'].append('elevator=noop')
|
||||
# Enable SCSI block multiqueue on Stretch.
|
||||
from bootstrapvz.common.releases import stretch
|
||||
if info.manifest.release >= stretch:
|
||||
|
|
|
@ -14,21 +14,7 @@ class SetGrubConsolOutputDeviceToVirtual(Task):
|
|||
|
||||
@classmethod
|
||||
def run(cls, info):
|
||||
info.grub_config['GRUB_CMDLINE_LINUX'].extend([
|
||||
'console=tty0',
|
||||
'consoleblank=0',
|
||||
'elevator=noop',
|
||||
'noibrs',
|
||||
'noibpb',
|
||||
'nopti',
|
||||
'nospectre_v2',
|
||||
'nospectre_v1',
|
||||
'l1tf=off',
|
||||
'nospec_store_bypass_disable',
|
||||
'no_stf_barrier',
|
||||
'mds=off',
|
||||
'mitigations=off',
|
||||
])
|
||||
info.grub_config['GRUB_CMDLINE_LINUX'].append('console=tty0')
|
||||
|
||||
|
||||
class SetGrubSystemdShowStatus(Task):
|
||||
|
|
|
@ -11,18 +11,4 @@ class AddVirtualConsoleGrubOutputDevice(Task):
|
|||
|
||||
@classmethod
|
||||
def run(cls, info):
|
||||
info.grub_config['GRUB_CMDLINE_LINUX'].extend([
|
||||
'console=tty0',
|
||||
'consoleblank=0',
|
||||
'elevator=noop',
|
||||
'noibrs',
|
||||
'noibpb',
|
||||
'nopti',
|
||||
'nospectre_v2',
|
||||
'nospectre_v1',
|
||||
'l1tf=off',
|
||||
'nospec_store_bypass_disable',
|
||||
'no_stf_barrier',
|
||||
'mds=off',
|
||||
'mitigations=off',
|
||||
])
|
||||
info.grub_config['GRUB_CMDLINE_LINUX_DEFAULT'].append('console=tty0')
|
||||
|
|
Loading…
Add table
Reference in a new issue