From 7dd1b49040249fad815da4906d4b35fd2949003b Mon Sep 17 00:00:00 2001 From: HeYue Date: Fri, 3 Feb 2023 15:36:52 +0800 Subject: [PATCH] Update the setup host grub steps Tracked-On: OAM-105416 Signed-off-by: HeYue --- scripts/setup_host.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/setup_host.sh b/scripts/setup_host.sh index 77a906e..ec62bdf 100755 --- a/scripts/setup_host.sh +++ b/scripts/setup_host.sh @@ -167,9 +167,9 @@ function install_vm_manager() { function ubu_enable_host_gvt(){ if [[ ! `cat /etc/default/grub` =~ "i915.enable_gvt=1 intel_iommu=on i915.force_probe=*" ]]; then - read -p "The grub entry in '/etc/default/grub' will be updated for enabling GVT-g and GVT-d, do you want to continue? [Y/n]" res + read -p "Do you want to update the grub entry in '/etc/default/grub' for enabling GVT-g and GVT-d? [Y/n]" res if [ x$res = xn ]; then - exit 0 + return fi sed -i "s/GRUB_CMDLINE_LINUX=\"/GRUB_CMDLINE_LINUX=\"i915.enable_gvt=1 intel_iommu=on i915.force_probe=*/g" /etc/default/grub update-grub @@ -183,9 +183,9 @@ function ubu_enable_host_gvt(){ function ubu_enable_host_sriov(){ if [[ ! `cat /etc/default/grub` =~ "i915.enable_guc=0x7" ]]; then - read -p "The grub entry in '/etc/default/grub' will be updated for enabling SRIOV, do you want to continue? [Y/n]" res + read -p "Do you want to update the grub entry in '/etc/default/grub' for enabling SRIOV? [Y/n]" res if [ x$res = xn ]; then - exit 0 + return fi sed -i "s/GRUB_CMDLINE_LINUX=\"/GRUB_CMDLINE_LINUX=\"i915.enable_guc=0x7 udmabuf.list_limit=8192 /g" /etc/default/grub update-grub