summaryrefslogtreecommitdiff
path: root/src/virt.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/virt.c')
-rw-r--r--src/virt.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/virt.c b/src/virt.c
index 380fabded2..3f0912a8a6 100644
--- a/src/virt.c
+++ b/src/virt.c
@@ -209,6 +209,13 @@ int detect_container(const char **id) {
*id = "lxc";
return 1;
+ } else if (streq(line, "container=lxc-libvirt")) {
+ fclose(f);
+
+ if (id)
+ *id = "lxc-libvirt";
+ return 1;
+
} else if (streq(line, "container=systemd-nspawn")) {
fclose(f);