From 26a1efdf61b462d0fff440a558a96f5cd184920c Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 2 Jul 2012 11:38:32 +0200 Subject: core: mention if we are run from an initial RAM disk --- src/core/main.c | 3 +++ src/core/manager.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/core/main.c b/src/core/main.c index fc60fb398e..6a2dbc2f54 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -1439,6 +1439,9 @@ int main(int argc, char *argv[]) { if (virtualization) log_info("Detected virtualization '%s'.", virtualization); + if (in_initrd()) + log_info("Running in initial RAM disk."); + } else log_debug(PACKAGE_STRING " running in user mode. (" SYSTEMD_FEATURES "; " DISTRIBUTION ")"); diff --git a/src/core/manager.c b/src/core/manager.c index 5958ade8ec..f07d26e9cd 100644 --- a/src/core/manager.c +++ b/src/core/manager.c @@ -1741,7 +1741,7 @@ int manager_serialize(Manager *m, FILE *f, FDSet *fds) { dual_timestamp_serialize(f, "initrd-timestamp", &m->initrd_timestamp); - if (! in_initrd()) { + if (!in_initrd()) { dual_timestamp_serialize(f, "startup-timestamp", &m->startup_timestamp); dual_timestamp_serialize(f, "finish-timestamp", &m->finish_timestamp); } -- cgit v1.2.3-54-g00ecf