X-Git-Url: http://git.annexia.org/?p=virt-what.git;a=blobdiff_plain;f=virt-what.in;h=d037a992f57a4154d89007f0b93538f41425639e;hp=01e9acaf689416d9bff6eaca1b849dc4e798a0af;hb=HEAD;hpb=805604762468b754ea60e5dc176fa26f68d211b8 diff --git a/virt-what.in b/virt-what.in index 01e9aca..5ccf49e 100644 --- a/virt-what.in +++ b/virt-what.in @@ -198,6 +198,12 @@ if [ -e "${root}/proc/1/environ" ] && echo oci fi +# Check for CRI-O. +if [ -e "${root}/proc/1/environ" ] && + cat "${root}/proc/1/environ" | tr '\000' '\n' | grep -Eiq '^container=crio'; then + echo crio +fi + # Check for Podman. if [ -e "${root}/proc/1/environ" ] && cat "${root}/proc/1/environ" | tr '\000' '\n' | grep -Eiq '^container=podman'; then @@ -259,7 +265,8 @@ if echo "$dmi" | grep -q 'Vendor: Parallels'; then fi # Check for Nutanix AHV. -if echo "$dmi" | grep -q 'Manufacturer: Nutanix'; then +if echo "$dmi" | grep -q 'Manufacturer: Nutanix' && + echo "$dmi" | grep -q 'Product Name: AHV'; then echo nutanix_ahv fi