manager: don't show kernel boot-up time for containers

This commit is contained in:
Lennart Poettering 2011-03-14 21:47:41 +01:00
parent 72fe22f930
commit e03ae6615a
2 changed files with 4 additions and 1 deletions

2
TODO
View File

@ -26,6 +26,8 @@ F15:
* remove getty magic, move it into a generator
* recreate private socket on SIGUSR2
Features:
* optionally create watched directories in .path units

View File

@ -2841,7 +2841,8 @@ void manager_check_finished(Manager *m) {
dual_timestamp_get(&m->finish_timestamp);
if (m->running_as == MANAGER_SYSTEM) {
if (m->running_as == MANAGER_SYSTEM && detect_container(NULL) <= 0) {
if (dual_timestamp_is_set(&m->initrd_timestamp)) {
log_info("Startup finished in %s (kernel) + %s (initrd) + %s (userspace) = %s.",
format_timespan(kernel, sizeof(kernel),