CDLinux startup process analysis

zhaozj2021-02-16  58

CDLinux startup process analysis

Nuclear load

2. According to the kernel parameter root = / dev / ram0, initrd = cdlinux.gz loads compressed root file system mirror (Squashfs, EXT2, MiniX type, etc.) to memory, and decompressed

3. Find the init of the directory such as file system / bin: / sbin, read / etc / inittab as a configuration file, and start executing the initialization process init

So usually need to specify in / etc / inittab :: sysinit: /etc/rc.d/rc.init, the system will automatically perform this initialization script rc.init

4. In Rc.init, other file systems are usually loaded, such as:

a. mount -a will load all file systems in / etc / fstab;

b. Configure the network, routing information, host name,

c. And call /tc/rc.d/rc.* Other scripts to implement allowed to exchange partitions, load packages, and update shared library links

d. Execute /etc/rc.d/init.d/* The following can have a script (service process, service daemons)

e. Execute user local script rc.local

f. Output version information and login information

5. The system is automatically found and executed / bin / login

------------------

P.S. Thanks to CDLinux's author Benz brother guidance!

转载请注明原文地址:https://www.9cbs.com/read-20862.html

New Post(0)