1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2024-12-25 23:21:33 +03:00

core: mention if we are run from an initial RAM disk

This commit is contained in:
Lennart Poettering 2012-07-02 11:38:32 +02:00
parent b5b4c94a67
commit 26a1efdf61
2 changed files with 4 additions and 1 deletions

View 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 ")");

View 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);
}