chiark / gitweb /
virt: make sure that we detect unknown container managers as VIRTUALIZATION_CONTAINER...
authorLennart Poettering <lennart@poettering.net>
Mon, 9 Nov 2015 22:47:29 +0000 (23:47 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 26 Apr 2017 10:58:55 +0000 (12:58 +0200)
If we don't know a container manager, we should consider it as "other"
rather than as no container manager at all, to provide a somwhat useful
upgrade path.

src/basic/virt.c

index 885d926..f1d5145 100644 (file)
@@ -395,7 +395,7 @@ int detect_container(void) {
                         goto finish;
                 }
 
-        r = VIRTUALIZATION_NONE;
+        r = VIRTUALIZATION_CONTAINER_OTHER;
 
 finish:
         cached_found = r;