Merge "Spectre kernel options set to off in kickstarts"
This commit is contained in:
commit
ea6e03b765
@ -86,6 +86,9 @@ if [[ "$subfunction" =~ lowlatency ]]; then
|
||||
KERN_OPTS="${KERN_OPTS} skew_tick=1"
|
||||
fi
|
||||
|
||||
# spectre options
|
||||
KERN_OPTS="${KERN_OPTS} nopti nospectre_v2"
|
||||
|
||||
perl -pi -e 's/(GRUB_CMDLINE_LINUX=.*)\"/\1'"$KERN_OPTS"'\"/g' /etc/default/grub
|
||||
|
||||
if [ -d /sys/firmware/efi ] ; then
|
||||
|
@ -26,6 +26,9 @@ fi
|
||||
|
||||
KERN_OPTS="${KERN_OPTS} cgroup_disable=memory"
|
||||
|
||||
# spectre options
|
||||
KERN_OPTS="${KERN_OPTS} nopti nospectre_v2"
|
||||
|
||||
perl -pi -e 's/(GRUB_CMDLINE_LINUX=.*)\"/\1'"$KERN_OPTS"'\"/g' /etc/default/grub
|
||||
|
||||
if [ -d /sys/firmware/efi ] ; then
|
||||
|
@ -20,6 +20,9 @@ fi
|
||||
|
||||
KERN_OPTS="${KERN_OPTS} cgroup_disable=memory"
|
||||
|
||||
# spectre options
|
||||
KERN_OPTS="${KERN_OPTS} nopti nospectre_v2"
|
||||
|
||||
perl -pi -e 's/(GRUB_CMDLINE_LINUX=.*)\"/\1'"$KERN_OPTS"'\"/g' /etc/default/grub
|
||||
|
||||
if [ -d /sys/firmware/efi ] ; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user