User Tools

Site Tools


zh-cn:doc:techref:requirements.boot.process

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

zh-cn:doc:techref:requirements.boot.process [2017/11/20 05:06]
hexcola created
zh-cn:doc:techref:requirements.boot.process [2017/11/20 08:52] (current)
hexcola [启动/预初始化(Boot/Preinit)]
Line 5: Line 5:
 =====启动/​预初始化(Boot/​Preinit)===== =====启动/​预初始化(Boot/​Preinit)=====
  
-The Boot process currently consists of the kernel bootstrap (not discussed here)preinit, and initPreinit ​takes care of things that init can't function without, while init is responsible for starting up the rest of the system.+目前启动进程由kernel bootstrap(这里暂不讨论),预初始化(preinit)和初始化(init)组成。Preinit用于完成init无法完成的任务,init则负责启动系统。
  
 On a Debian desktop system there is an analogue to preinit, which uses initramfs to bring up the system enough to the point init can operate. Unfortunately initramfs is not an option on openwrt because it wastes too much space. The binaries and scripts in an initramfs cannot be retained for use in the booted system, unless they are copied to RAM (tmpfs) (if anyone know otherwise and can point out how, please contact the devs), which is why preinit exists. On a Debian desktop system there is an analogue to preinit, which uses initramfs to bring up the system enough to the point init can operate. Unfortunately initramfs is not an option on openwrt because it wastes too much space. The binaries and scripts in an initramfs cannot be retained for use in the booted system, unless they are copied to RAM (tmpfs) (if anyone know otherwise and can point out how, please contact the devs), which is why preinit exists.
 +
 +在Debian桌面操作系统中有analogue用于预初始化,它使用了initramfs。。。然而,对于OpenWrt来说initramfs需要太多的空间,因此不是一个可选项。
  
 Preinit looks to linux like the final boot stage to init on the rootfs. Preinit then mounts the root file system, does pivot_root to the rootfs, and then use the real init to replace itself. Basically it transforms intself into the '​real'​ init and rootfs. Preinit looks to linux like the final boot stage to init on the rootfs. Preinit then mounts the root file system, does pivot_root to the rootfs, and then use the real init to replace itself. Basically it transforms intself into the '​real'​ init and rootfs.
zh-cn/doc/techref/requirements.boot.process.txt · Last modified: 2017/11/20 08:52 by hexcola