git.annexia.org
/
virt-what.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add support for CRI-O containers
[virt-what.git]
/
virt-what.in
diff --git
a/virt-what.in
b/virt-what.in
index
896bfd8
..
5ccf49e
100644
(file)
--- a/
virt-what.in
+++ b/
virt-what.in
@@
-198,6
+198,12
@@
if [ -e "${root}/proc/1/environ" ] &&
echo oci
fi
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
# Check for Podman.
if [ -e "${root}/proc/1/environ" ] &&
cat "${root}/proc/1/environ" | tr '\000' '\n' | grep -Eiq '^container=podman'; then