Skip to content

Commit

Permalink
Update virtualization.sh
Browse files Browse the repository at this point in the history
Co-authored-by: Adam Perkowski <[email protected]>
  • Loading branch information
jeevithakannan2 and adamperkowski authored Oct 13, 2024
1 parent 1ee60ff commit 8e400f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/tabs/system-setup/arch/virtualization.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ checkKVM() {
kernel_avail="$(zgrep CONFIG_KVM= /proc/config.gz | cut -d '=' -f 2)"
modules_avail="$(lsmod | grep kvm)"
if [ -z "$hardware_avail" ] || [ -z "$modules_avail" ] || { [ "$kernel_avail" != "m" ] && [ "$kernel_avail" != "y" ]; }; then
printf "%b\n" "${RED}KVM is not available. Please refer https://wiki.archlinux.org/title/KVM for more information.${RC}"
printf "%b\n" "${RED}KVM is not available. Make sure you have CPU virtualization support enabled in your BIOS/UEFI settings. Please refer https://wiki.archlinux.org/title/KVM for more information.${RC}"
else
"$ESCALATION_TOOL" usermod "$USER" -aG kvm
fi
Expand Down Expand Up @@ -103,4 +103,4 @@ main() {

checkEnv
checkEscalationTool
main
main

0 comments on commit 8e400f7

Please sign in to comment.