From: Lennart Poettering Date: Mon, 9 Nov 2015 22:47:29 +0000 (+0100) Subject: virt: make sure that we detect unknown container managers as VIRTUALIZATION_CONTAINER... X-Git-Tag: v228~64^2~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f499daf4b3fbd24071b9f301ef6401e258d1b1d6;p=thirdparty%2Fsystemd.git virt: make sure that we detect unknown container managers as VIRTUALIZATION_CONTAINER_OTHER 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. --- diff --git a/src/basic/virt.c b/src/basic/virt.c index ff006e96c63..d088b7a8049 100644 --- a/src/basic/virt.c +++ b/src/basic/virt.c @@ -400,7 +400,7 @@ int detect_container(void) { goto finish; } - r = VIRTUALIZATION_NONE; + r = VIRTUALIZATION_CONTAINER_OTHER; finish: cached_found = r;