]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
main: add some more comments for the early initialization phase 7665/head
authorLennart Poettering <lennart@poettering.net>
Fri, 15 Dec 2017 18:03:17 +0000 (19:03 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 15 Dec 2017 19:52:28 +0000 (20:52 +0100)
src/core/main.c

index 34f651d6acf2c7ff205c838e46f8d1f4353341dd..c7174735638f510d79d0369c310be431733b74b4 100644 (file)
@@ -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;