mirror of
https://github.com/kevingruesser/bootstrap-vz.git
synced 2025-08-22 09:50:37 +00:00
optimize GRUB parameter list and disable L1TF, Meltdown, Spectre etc. patches
https://make-linux-fast-again.com/
This commit is contained in:
parent
b06d9ff28e
commit
9c01c1b13f
5 changed files with 56 additions and 2 deletions
|
@ -33,4 +33,14 @@ class ConfigureGrub(Task):
|
||||||
'earlyprintk=ttyS0,115200',
|
'earlyprintk=ttyS0,115200',
|
||||||
'rootdelay=300',
|
'rootdelay=300',
|
||||||
'elevator=noop',
|
'elevator=noop',
|
||||||
|
'noibrs',
|
||||||
|
'noibpb',
|
||||||
|
'nopti',
|
||||||
|
'nospectre_v2',
|
||||||
|
'nospectre_v1',
|
||||||
|
'l1tf=off',
|
||||||
|
'nospec_store_bypass_disable',
|
||||||
|
'no_stf_barrier',
|
||||||
|
'mds=off',
|
||||||
|
'mitigations=off',
|
||||||
])
|
])
|
||||||
|
|
|
@ -70,6 +70,16 @@ class ConfigurePVGrub(Task):
|
||||||
info.grub_config['GRUB_CMDLINE_LINUX'].extend([
|
info.grub_config['GRUB_CMDLINE_LINUX'].extend([
|
||||||
'consoleblank=0',
|
'consoleblank=0',
|
||||||
'elevator=noop',
|
'elevator=noop',
|
||||||
|
'noibrs',
|
||||||
|
'noibpb',
|
||||||
|
'nopti',
|
||||||
|
'nospectre_v2',
|
||||||
|
'nospectre_v1',
|
||||||
|
'l1tf=off',
|
||||||
|
'nospec_store_bypass_disable',
|
||||||
|
'no_stf_barrier',
|
||||||
|
'mds=off',
|
||||||
|
'mitigations=off',
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -10,8 +10,22 @@ class ConfigureGrub(Task):
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def run(cls, info):
|
def run(cls, info):
|
||||||
info.grub_config['GRUB_CMDLINE_LINUX'].append('console=ttyS0,38400n8')
|
info.grub_config['GRUB_CMDLINE_LINUX'].extend([
|
||||||
info.grub_config['GRUB_CMDLINE_LINUX'].append('elevator=noop')
|
'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',
|
||||||
|
])
|
||||||
# Enable SCSI block multiqueue on Stretch.
|
# Enable SCSI block multiqueue on Stretch.
|
||||||
from bootstrapvz.common.releases import stretch
|
from bootstrapvz.common.releases import stretch
|
||||||
if info.manifest.release >= stretch:
|
if info.manifest.release >= stretch:
|
||||||
|
|
|
@ -18,6 +18,16 @@ class SetGrubConsolOutputDeviceToVirtual(Task):
|
||||||
'console=tty0',
|
'console=tty0',
|
||||||
'consoleblank=0',
|
'consoleblank=0',
|
||||||
'elevator=noop',
|
'elevator=noop',
|
||||||
|
'noibrs',
|
||||||
|
'noibpb',
|
||||||
|
'nopti',
|
||||||
|
'nospectre_v2',
|
||||||
|
'nospectre_v1',
|
||||||
|
'l1tf=off',
|
||||||
|
'nospec_store_bypass_disable',
|
||||||
|
'no_stf_barrier',
|
||||||
|
'mds=off',
|
||||||
|
'mitigations=off',
|
||||||
])
|
])
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -15,4 +15,14 @@ class AddVirtualConsoleGrubOutputDevice(Task):
|
||||||
'console=tty0',
|
'console=tty0',
|
||||||
'consoleblank=0',
|
'consoleblank=0',
|
||||||
'elevator=noop',
|
'elevator=noop',
|
||||||
|
'noibrs',
|
||||||
|
'noibpb',
|
||||||
|
'nopti',
|
||||||
|
'nospectre_v2',
|
||||||
|
'nospectre_v1',
|
||||||
|
'l1tf=off',
|
||||||
|
'nospec_store_bypass_disable',
|
||||||
|
'no_stf_barrier',
|
||||||
|
'mds=off',
|
||||||
|
'mitigations=off',
|
||||||
])
|
])
|
||||||
|
|
Loading…
Add table
Reference in a new issue