I have an embedded system where i did completly disable openrc. I changed to runit. Static-dev, no udev/eudev/systemd and static kernel. The system and services are up in 6.5 sec from cold boot. The system needed about 40 secs with standard openrc.
Precausions: Have a rescue system at hand. Be it a second sd card or whatever you might need. Make a backup before you start. That point is important!
1. compile an static kernel
2. change to static dev
3. emerge runit [1] or s6 [2]
4. Make service directories and run scripts for your services
5. add init=/sbin/runit to your kernel commandline
6. Measure Time
For 1. i did the following:
Code: Select all
zcat /proc/config.gz | sed s/=m/=y/g > static-config
Then compile your kernel with this static-config. Maybe disable the module loading completly. I did it.
The most hard point is 2. Neddy here in the forum wrote a wiki page [3]
[1]
http://smarden.org/runit/
[2]
http://skarnet.org/software/s6/
[3]
http://dev.gentoo.org/~neddyseagoon/Old ... ntoo_3.xml