diff --git a/system/setup b/system/setup index 80cab6ee65f..f9f08ce79dd 100755 --- a/system/setup +++ b/system/setup @@ -1901,7 +1901,7 @@ class LinuxVirtual(Virtual): if os.path.exists('/proc/1/cgroup'): for line in open('/proc/1/cgroup').readlines(): - if re.search('/lxc/.*$', line): + if re.search('/lxc/', line): self.facts['virtualization_type'] = 'lxc' self.facts['virtualization_role'] = 'guest' return