Spectre kernel options set to off in kickstarts

Change-Id: I4721b8881c7e40556b90eb882b9712f3e6c93841
Signed-off-by: Don Penney <don.penney@windriver.com>
This commit is contained in:
Don Penney 2018-04-18 15:27:24 -04:00
parent 8344b27b67
commit 168c73f3e0
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