diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-06-28 13:46:45 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-06-28 14:05:17 +0200 |
commit | c20f5ac765ff8073a469dad85d9aaefa080196fc (patch) | |
tree | d10f6db44aa63d4b9f66435081b0a8cb36eab098 /src/core/main.c | |
parent | 5076f0ccfd36b67512d44fe355b80305ced7dcba (diff) |
main: print detected virtualiaztion at boot
Diffstat (limited to 'src/core/main.c')
-rw-r--r-- | src/core/main.c | 13 |
1 files 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(); |