From 341b2ab5298deb6f7bdd91bb40dccccb5056f02e Mon Sep 17 00:00:00 2001 From: bol-van Date: Wed, 13 Apr 2022 11:35:20 +0300 Subject: [PATCH] install_easy: dmi based virtualization detect --- install_easy.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/install_easy.sh b/install_easy.sh index 2e484f6..431ec94 100755 --- a/install_easy.sh +++ b/install_easy.sh @@ -675,8 +675,21 @@ check_dns() check_virt() { echo \* checking virtualization + local vm s v if exists systemd-detect-virt; then - local vm=$(systemd-detect-virt --vm) + vm=$(systemd-detect-virt --vm) + elif [ -f /sys/class/dmi/id/product_name ]; then + read s