Hello all,<br>I need some explanations concerning the ways to mount rootf during boot.<br><br>I have read some documents (notably the very useful How to use initramfs by Rob Landley) <br>and dug into the source code, but some doubts remain.<br>
<br>If I well understood, there is 2 differents procedures to mount the rootfs:<br>- using the old way: init ramdisk<br>- using the initramfs support (which appears to be really more efficient)<br><br>The fonction "populate_rootfs()" seems to be a crucial point of the procedure:<br>
it calls a first time "unpack_to_roofs()" with __initramfs_start and __initramfs_size<br>as arguments, and if initrd_start is not NULL, calls one more time "unpack_to_rootfs()"<br>with initrd_start and (initrd_end-initrd_start) as arguments.<br>
<br>What's really happening during the first unpack_to_rootfs() ?<br>Does the kernel unpack the iniramfs.cpio (created either by supplying a valid cpio one <br>or a config file through CONFIG_INITRAMFS_SOURCE) from __initramfs_start (defined in vmlinux.lds.S)?<br>
<br>If I aim to use initramfs support, should I do something with initrd_start/end and CONFIG_BLK_DEV_RAM stuffs?<br><br>Thanks in advance for your help and clarifications.<br><br>Regards