From: Lennart Poettering Date: Mon, 14 Mar 2011 20:47:41 +0000 (+0100) Subject: manager: don't show kernel boot-up time for containers X-Git-Tag: v21~84 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e03ae6615a1fe9a2aee854d00c3fc7397a06983d;p=systemd manager: don't show kernel boot-up time for containers --- diff --git a/TODO b/TODO index 4fc728ff..522ef592 100644 --- a/TODO +++ b/TODO @@ -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 diff --git a/src/manager.c b/src/manager.c index 919560b0..df75eca8 100644 --- a/src/manager.c +++ b/src/manager.c @@ -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),