diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-07-02 11:38:32 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-07-02 11:38:32 +0200 |
commit | 26a1efdf61b462d0fff440a558a96f5cd184920c (patch) | |
tree | 2afddb617ce47c8b448a9e4c50ec1be675c953b6 /src | |
parent | b5b4c94a67d90891a0225af0e08cf45dbc329377 (diff) |
core: mention if we are run from an initial RAM disk
Diffstat (limited to 'src')
-rw-r--r-- | src/core/main.c | 3 | ||||
-rw-r--r-- | src/core/manager.c | 2 |
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); } |