manager: only serialize the timestamps for the initramfs if in_initrd()
This commit is contained in:
parent
9be346c94e
commit
f38ed06060
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue