diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-12-15 19:03:17 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2017-12-15 20:52:28 +0100 |
commit | d72a8f10b671f4ddca952d2af7d0ca157e8967f7 (patch) | |
tree | 0887e6433aff3d3ce377adb2095990bd8a0f4c78 /src | |
parent | 625e8690ab1545f9e88bdf4c3ec8c67aa6c8c2ff (diff) | |
download | systemd-d72a8f10b671f4ddca952d2af7d0ca157e8967f7.tar.gz systemd-d72a8f10b671f4ddca952d2af7d0ca157e8967f7.tar.bz2 systemd-d72a8f10b671f4ddca952d2af7d0ca157e8967f7.zip |
main: add some more comments for the early initialization phase
Diffstat (limited to 'src')
-rw-r--r-- | src/core/main.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/core/main.c b/src/core/main.c index 34f651d6ac..c717473563 100644 --- a/src/core/main.c +++ b/src/core/main.c @@ -2304,20 +2304,23 @@ int main(int argc, char *argv[]) { Manager *m = NULL; FDSet *fds = NULL; + /* SysV compatibility: redirect init → telinit */ redirect_telinit(argc, argv); + /* Take timestamps early on */ dual_timestamp_from_monotonic(&kernel_timestamp, 0); dual_timestamp_get(&userspace_timestamp); + /* Figure out whether we need to do initialize the system, or if we already did that because we are + * reexecuting */ skip_setup = early_skip_setup_check(argc, argv); - /* If we get started via the /sbin/init symlink then we are - called 'init'. After a subsequent reexecution we are then - called 'systemd'. That is confusing, hence let's call us - systemd right-away. */ + /* If we get started via the /sbin/init symlink then we are called 'init'. After a subsequent reexecution we + * are then called 'systemd'. That is confusing, hence let's call us systemd right-away. */ program_invocation_short_name = systemd; (void) prctl(PR_SET_NAME, systemd); + /* Save the original command line */ saved_argv = argv; saved_argc = argc; |