From cd68fbefd9c9470539cf5656074906b3baeca63c Mon Sep 17 00:00:00 2001 From: Brijesh Singh Date: Sun, 24 May 2020 07:14:11 -0500 Subject: fix SEV policy calculation and remove thp change from grub --- install.sh | 19 +------------------ 1 file changed, 1 insertion(+), 18 deletions(-) (limited to 'install.sh') diff --git a/install.sh b/install.sh index 216c741..c73911b 100755 --- a/install.sh +++ b/install.sh @@ -1,6 +1,6 @@ #!/bin/bash -. /etc/os-release +[ -e /etc/os-release ] && . /etc/os-release # This will install all the dependent packages for qemu and ovmf to run if [ "$ID_LIKE" = "debian" ]; then @@ -15,23 +15,6 @@ else rpm -ivh linux/kernel-*.rpm fi -# update grub.cfg to disable THP -if ! grep "transparent_hugepage=never" /etc/default/grub >/dev/null; then - orig_cmdline="`grep GRUB_CMDLINE_LINUX /etc/default/grub | cut -f2- -d=`" - cmdline="${orig_cmdline::-1}" - cmdline="${cmdline:1}" - cmdline="${cmdline} transparent_hugepage=never" - - sed -i "/GRUB_CMDLINE_LINUX/c\GRUB_CMDLINE_LINUX=\"${cmdline}\"" /etc/default/grub - - if [ "$ID_LIKE" = "debian" ]; then - update-grub2 - else - grub2-mkconfig - fi -fi - -# cp kvm.conf /etc/modprobe.d/ echo -- cgit v1.2.3-71-gd317