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:
parent
8344b27b67
commit
168c73f3e0
@ -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