Merge "Spectre kernel options set to off in kickstarts"

This commit is contained in:
Zuul 2018-06-27 20:56:03 +00:00 committed by Gerrit Code Review
commit ea6e03b765
3 changed files with 9 additions and 0 deletions

View File

@ -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

View File

@ -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

View File

@ -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