Linux启动分析

来源:互联网 发布:返利网平台源码开发 编辑:程序博客网 时间:2024/05/22 04:42
Linux boot sequence:
1. Boot loader will load the kernel image into memory.

2. When the kernel is loaded and run, it initializes all kernel-specific structures and tasks and starts the init process.

3. Init process needs a configuration file located in /etc/inittab that specifies what actions need to be taken.

4. Init process then makes sure that all filesystems (defined in /etc/fstab) are mounted and ready to be used. Then it executes several scripts located in /etc/init.d.

5. Finally, when all scripts are executed, init activates the terminals attaching a special process called agetty to it.