summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2012-05-16 14:22:41 +0200
committerLennart Poettering <lennart@poettering.net>2012-05-21 18:49:31 +0200
commitf38ed060600d124a68332694ab497c344bd8e089 (patch)
tree93bc32fce53fb713c887bc3e8b79dd06682a32db /src
parent9be346c94eab9de0edc30f08b6c6d070c3a17c79 (diff)
manager: only serialize the timestamps for the initramfs if in_initrd()
Diffstat (limited to 'src')
-rw-r--r--src/core/manager.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/manager.c b/src/core/manager.c
index f8fb8a23e7..3ccb392f66 100644
--- a/src/core/manager.c
+++ b/src/core/manager.c
@@ -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);