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"
|
KERN_OPTS="${KERN_OPTS} skew_tick=1"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# spectre options
|
||||||
|
KERN_OPTS="${KERN_OPTS} nopti nospectre_v2"
|
||||||
|
|
||||||
perl -pi -e 's/(GRUB_CMDLINE_LINUX=.*)\"/\1'"$KERN_OPTS"'\"/g' /etc/default/grub
|
perl -pi -e 's/(GRUB_CMDLINE_LINUX=.*)\"/\1'"$KERN_OPTS"'\"/g' /etc/default/grub
|
||||||
|
|
||||||
if [ -d /sys/firmware/efi ] ; then
|
if [ -d /sys/firmware/efi ] ; then
|
||||||
|
|
|
@ -26,6 +26,9 @@ fi
|
||||||
|
|
||||||
KERN_OPTS="${KERN_OPTS} cgroup_disable=memory"
|
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
|
perl -pi -e 's/(GRUB_CMDLINE_LINUX=.*)\"/\1'"$KERN_OPTS"'\"/g' /etc/default/grub
|
||||||
|
|
||||||
if [ -d /sys/firmware/efi ] ; then
|
if [ -d /sys/firmware/efi ] ; then
|
||||||
|
|
|
@ -20,6 +20,9 @@ fi
|
||||||
|
|
||||||
KERN_OPTS="${KERN_OPTS} cgroup_disable=memory"
|
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
|
perl -pi -e 's/(GRUB_CMDLINE_LINUX=.*)\"/\1'"$KERN_OPTS"'\"/g' /etc/default/grub
|
||||||
|
|
||||||
if [ -d /sys/firmware/efi ] ; then
|
if [ -d /sys/firmware/efi ] ; then
|
||||||
|
|
Loading…
Reference in New Issue