summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-07-02 11:38:32 +0200
committerLennart Poettering <lennart@poettering.net>2012-07-02 11:38:32 +0200
commit26a1efdf61b462d0fff440a558a96f5cd184920c (patch)
tree2afddb617ce47c8b448a9e4c50ec1be675c953b6
parentb5b4c94a67d90891a0225af0e08cf45dbc329377 (diff)
core: mention if we are run from an initial RAM disk
-rw-r--r--src/core/main.c3
-rw-r--r--src/core/manager.c2
2 files changed, 4 insertions, 1 deletions
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);
}