about summary refs log tree commit diff
path: root/functions
diff options
context:
space:
mode:
Diffstat (limited to 'functions')
-rw-r--r--[-rwxr-xr-x]functions3
1 files changed, 2 insertions, 1 deletions
diff --git a/functions b/functions
index 65d0b78..3ab0f1c 100755..100644
--- a/functions
+++ b/functions
@@ -28,7 +28,8 @@ emergency_shell() {
 }
 
 detect_virt() {
-    # Detect LXC containers
+   # Detect LXC containers
+   [ ! -e /proc/self/environ ] && return
    if grep -q lxc /proc/self/environ >/dev/null; then
        export VIRTUALIZATION=1
    fi