From c20f5ac765ff8073a469dad85d9aaefa080196fc Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 28 Jun 2012 13:46:45 +0200 Subject: main: print detected virtualiaztion at boot --- src/core/main.c | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/src/core/main.c b/src/core/main.c index 7c66665e84..fc60fb398e 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -1430,8 +1430,17 @@ int main(int argc, char *argv[]) { goto finish; } - log_full(arg_running_as == MANAGER_SYSTEM ? LOG_INFO : LOG_DEBUG, - PACKAGE_STRING " running in %s mode. (" SYSTEMD_FEATURES "; " DISTRIBUTION ")", manager_running_as_to_string(arg_running_as)); + if (arg_running_as == MANAGER_SYSTEM) { + const char *virtualization = NULL; + + log_info(PACKAGE_STRING " running in system mode. (" SYSTEMD_FEATURES "; " DISTRIBUTION ")"); + + detect_virtualization(&virtualization); + if (virtualization) + log_info("Detected virtualization '%s'.", virtualization); + + } else + log_debug(PACKAGE_STRING " running in user mode. (" SYSTEMD_FEATURES "; " DISTRIBUTION ")"); if (arg_running_as == MANAGER_SYSTEM && !skip_setup) { locale_setup(); -- cgit v1.2.3-54-g00ecf