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:
parent
b5b4c94a67
commit
26a1efdf61
@ -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 ")");
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user