Wiki source code of Openwrt Boot Notes

Version 1.1 by Leon Poon on 2019/01/05 14:43

Show last authors
1
2
3 = initramfs-kernel =
4
5 kernel runs /init.
6
7 /init is a script which sets INITRAMFS=1 and then execs /sbin/init.
8
9 /sbin/init is ELF comes from procd package. What it does:
10
11 * early:
12 ** mount /proc, /sysfs, and create /dev nodes, create /tmp subdirs etc
13 ** set PATH
14 * kmodloader in subprocess
15 * preinit
16 ** plugd in subprocess (seem to deal with firmware)
17 ** /etc/preinit in subprocess
18 * when /etc/preinit is done then it execs and replaces itself with the "real" /sbin/procd
19
20