Linux general technology-Linux programming and kernel information for operations performed by initrd. The following is a detailed description. When using initrd, the typical system startup process changes:
Boot Loader reads kernel images and initrd files
The kernel converts the initrd file into a "normal" ramdisk and releases the memory occupied by the initrd file.
Initrd is used as the root file system and installed in read-write mode.
/Linuxrc is executed (it can be any executable file, including the script; it is executed as uid0, basically can complete all the work that the init program can do)
Linuxrc installs the "actual" root file system
Linuxrc places the root file system in the root directory by calling the cmdt_root system.
A commonly used start stream (such as calling/sbin/init) to start execution.
Uninstall the initrd file system.
Note that this is a typical process. In fact, the initrd mechanism can be used in two ways: either as a common root file system, so that steps 5th and 6th can be skipped, directly execute/sbin/init (this method is used by our testing system); or use it as a transitional environment, through which the kernel can continue to load the "actual" root file system.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service