chiark / gitweb /
core: mention if we are run from an initial RAM disk
authorLennart Poettering <lennart@poettering.net>
Mon, 2 Jul 2012 09:38:32 +0000 (11:38 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 2 Jul 2012 09:38:32 +0000 (11:38 +0200)
src/core/main.c
src/core/manager.c

index fc60fb3..6a2dbc2 100644 (file)
@@ -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 ")");
 
index 5958ade..f07d26e 100644 (file)
@@ -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);
         }