Merge "Make running_in_container work in more containers"

This commit is contained in:
Jenkins 2017-03-22 22:36:18 +00:00 committed by Gerrit Code Review
commit 63666a2079

View File

@ -666,7 +666,7 @@ function set_mtu {
# running_in_container - Returns true otherwise false
function running_in_container {
if grep -q lxc /proc/1/cgroup; then
if [[ $(systemd-detect-virt --container) == 'none' ]]; then
return 0
fi