]> err.no Git - systemd/commitdiff
manager: only serialize the timestamps for the initramfs if in_initrd()
authorHarald Hoyer <harald@redhat.com>
Wed, 16 May 2012 12:22:41 +0000 (14:22 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 21 May 2012 16:49:31 +0000 (18:49 +0200)
src/core/manager.c

index f8fb8a23e7727a05be8040758b05c3cefadcabf6..3ccb392f66803d463729faafdf7df46eb8fa7593 100644 (file)
@@ -1735,8 +1735,11 @@ int manager_serialize(Manager *m, FILE *f, FDSet *fds) {
         fprintf(f, "taint-usr=%s\n", yes_no(m->taint_usr));
 
         dual_timestamp_serialize(f, "initrd-timestamp", &m->initrd_timestamp);
-        dual_timestamp_serialize(f, "startup-timestamp", &m->startup_timestamp);
-        dual_timestamp_serialize(f, "finish-timestamp", &m->finish_timestamp);
+
+        if (! in_initrd()) {
+                dual_timestamp_serialize(f, "startup-timestamp", &m->startup_timestamp);
+                dual_timestamp_serialize(f, "finish-timestamp", &m->finish_timestamp);
+        }
 
         fputc('\n', f);