Merge "Make running_in_container work in more containers"
This commit is contained in:
commit
63666a2079
@ -666,7 +666,7 @@ function set_mtu {
|
|||||||
|
|
||||||
# running_in_container - Returns true otherwise false
|
# running_in_container - Returns true otherwise false
|
||||||
function running_in_container {
|
function running_in_container {
|
||||||
if grep -q lxc /proc/1/cgroup; then
|
if [[ $(systemd-detect-virt --container) == 'none' ]]; then
|
||||||
return 0
|
return 0
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user