Thread
:
What's the reason for 2-step boot process (init/rootfs)
View Single Post
TA-t3
2008-09-21 , 15:50
Posts: 3,841 | Thanked: 1,079 times | Joined on Nov 2006
#
4
There isn't actually much point in using initfs when you're on known hardware.
Initfs is mostly useful for traditional distributions where you have a generic kernel with most drivers as loadable modules. Then you boot from a ramdisk image (part of initfs), you do some hardware detection, you can then go on and load (from that same ramdisk) the drivers you'll need to access the actual root disk, e.g. scsi driver? or IDE driver? Or SATA driver? And filesystem driver: ext3? Reiserfs? and so on.
That way you can have a lean, mean kernel (due to drivers not compiled in, but being loadable modules), and load the drivers you need at runtime. Obviously that wouldn't be possible without initfs, because you can't store the disk (well, SD) and filesystem drivers on the root filesystem you haven't mounted yet.
However, when the hardware is known you simply compile in (as in 'part of the kernel, not dynamic, loadable') the minimum set of drivers you know you need (to be able to load the root filesystem), and you can skip the initfs step. (When I install a system on a desktop I usually make a new kernel for myself , without initfs).
__________________
N800/OS2007|N900/Maemo5
-- Metalayer-crawler delenda est.
-- Current state: Fed up with everything MeeGo.
Quote & Reply
|
The Following 2 Users Say Thank You to TA-t3 For This Useful Post:
Texrat
TA-t3
View Public Profile
Send a private message to TA-t3
Find all posts by TA-t3