Add KVM check
This commit is contained in:
@@ -92,7 +92,6 @@ _installPackagesYay() {
|
||||
yay --noconfirm -S "${toInstall[@]}";
|
||||
}
|
||||
|
||||
|
||||
# ------------------------------------------------------
|
||||
# Create symbolic links
|
||||
# ------------------------------------------------------
|
||||
@@ -123,3 +122,15 @@ _installSymLink() {
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
# ------------------------------------------------------
|
||||
# Installation in a KVM Virtual Machine
|
||||
# ------------------------------------------------------
|
||||
_isKVM() {
|
||||
iskvm=$(sudo dmesg | grep "Hypervisor detected")
|
||||
if [[ "$iskvm" =~ "KVM" ]] ;then
|
||||
echo 0
|
||||
else
|
||||
echo 1
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user