diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-01-25 00:13:05 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-01-25 00:13:05 +0100 |
commit | 7d39db92c5e3d4f0448982639ba06ae442bb6226 (patch) | |
tree | 93abaad44f9054f759b9a5e9f62ce0e196ddb7f6 /src | |
parent | caa94887002de8596c69f578dbdb684dfb368240 (diff) |
virt: detect LXC+libvirt containers
Diffstat (limited to 'src')
-rw-r--r-- | src/virt.c | 7 |
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); |