What? Don't knock it until you've tried it. ;)if you insist on not writing your own /sbin/initOnly on LWN...
I sometimes get projects with single-second boot time requirements. I could waste a lot of time reading config files, forking processes, or resolving symbols from shared libraries...or I can write my own monolithic /sbin/init, and use the time saved to load a larger and more functional application from boot media, or to avoid having to resort to kernel XIP and other more painful hacks just to boot in time.
With a translator from shell-like syntax to C code it's not even particularly difficult to convert from legacy rc scripts (or, in theory, systemd configuration files). The diminishing returns kick in pretty quickly as you pile on more software, though, so it only tends to be useful in very simple cases.
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds