Project

General

Profile

Boot process » History » Version 1

Oleksandr Rybalko, 05/28/2012 09:31 AM

1 1 Oleksandr Rybalko
h1. Boot process
2 1 Oleksandr Rybalko
3 1 Oleksandr Rybalko
h2. Variables source
4 1 Oleksandr Rybalko
5 1 Oleksandr Rybalko
rc system use three sources by default:
6 1 Oleksandr Rybalko
7 1 Oleksandr Rybalko
# /etc/defaults/rc.conf
8 1 Oleksandr Rybalko
# /etc/rc.conf
9 1 Oleksandr Rybalko
# /etc/rc.conf.local
10 1 Oleksandr Rybalko
11 1 Oleksandr Rybalko
Since we need some dynamic bits, like auto-generated configs for services (wireless/dhcp/etc), we need to inject it between default and user defined, so:
12 1 Oleksandr Rybalko
13 1 Oleksandr Rybalko
# /etc/defaults/rc.conf
14 1 Oleksandr Rybalko
# /var/run/rc.conf
15 1 Oleksandr Rybalko
# /etc/rc.conf
16 1 Oleksandr Rybalko
# /etc/rc.conf.local
17 1 Oleksandr Rybalko
18 1 Oleksandr Rybalko
that will allow user to override any bits defined by automatic startup configuration system.
19 1 Oleksandr Rybalko
(Use /var/run/ to not store it on flash when /etc/rc.saveconfig is called)
20 1 Oleksandr Rybalko
21 1 Oleksandr Rybalko
h2. Boot order
22 1 Oleksandr Rybalko
23 1 Oleksandr Rybalko
# /etc/rc.d/[[boardinfo rc.d script|boardinfo]]
24 1 Oleksandr Rybalko
# /etc/rc.d/[[ADAPTATION rc.d script|ADAPTATION]]
25 1 Oleksandr Rybalko
# /etc/rc.d/[[MAIN rc.d script|MAIN]]
26 1 Oleksandr Rybalko
# todo