Commit 7d39db92 authored by Lennart Poettering's avatar Lennart Poettering
Browse files

virt: detect LXC+libvirt containers

parent caa94887
......@@ -779,6 +779,7 @@
<varname>chroot</varname>,
<varname>openvz</varname>,
<varname>lxc</varname>,
<varname>lxc-libvirt</varname>,
<varname>systemd-nspawn</varname>,
<varname>pidns</varname> to test
against a specific implementation. If
......
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment