summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-06-28 13:46:45 +0200
committerLennart Poettering <lennart@poettering.net>2012-06-28 14:05:17 +0200
commitc20f5ac765ff8073a469dad85d9aaefa080196fc (patch)
treed10f6db44aa63d4b9f66435081b0a8cb36eab098 /src
parent5076f0ccfd36b67512d44fe355b80305ced7dcba (diff)
main: print detected virtualiaztion at boot
Diffstat (limited to 'src')
-rw-r--r--src/core/main.c13
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();