Mirror/Posts/StackExchange/Unix/2022-08-22/Linux A

From Library
Jump to navigation Jump to search



Comment text, raw:


As of 2022, if no user command was specified in the boot options _(`init=…`)_, the following are tried, in order: `/sbin/init`, `/etc/init`, `/bin/init`, `/bin/sh`. _(Note: the function is now `kernel_init()` instead of `init_post()`)_ Finally, from the [linked code](https://github.com/torvalds/linux/blob/master/init/main.c): “See Linux Documentation/admin-guide/init.rst”