When using initrd, the system typically boots step

王朝other·作者佚名  2006-03-06
窄屏简体版  字體: |||超大  

When using initrd, the system typically boots as follows:

1) the boot loader loads the kernel and the initial RAM disk

2) the kernel converts initrd into a "normal" RAM disk and

frees the memory used by initrd

3) initrd is mounted read-write as root

4) /linuxrc is executed (this can be any valid executable, including

shell scripts; it is run with uid 0 and can do basically everything

init can do)

5) linuxrc mounts the "real" root file system

6) linuxrc places the root file system at the root directory using the

pivot_root system call

7) the usual boot sequence (e.g. invocation of /sbin/init) is performed

on the root file system

8) the initrd file system is removed

Note that changing the root directory does not involve unmounting it.

It is therefore possible to leave processes running on initrd during that

procedure. Also note that file systems mounted under initrd continue to

be accessible.

 
 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
 
© 2005- 王朝網路 版權所有 導航