X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=virt-what.in;h=5ccf49e2e7a584ac4ead259c903026ece510fee9;hb=95d18c02038f44bc3e8ff264079f8b697eecf1bd;hp=896bfd8b3cb40e8c265597c33eec5494e6fcfd49;hpb=eeb7d8a1e7c73fc9c5b4e987d92a04136d61b07d;p=virt-what.git diff --git a/virt-what.in b/virt-what.in index 896bfd8..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