Why '-c DEV' option for switch_root?

James B jamesbond3142 at gmail.com
Mon Dec 16 08:33:36 UTC 2013


On Mon, 16 Dec 2013 08:05:55 +0000
Laurent Bercot <ska-dietlibc at skarnet.org> wrote:

>   I have yet to see a case where initramfs is really needed. Every time
> I've seen a system boot on initramfs, the same goals could have been
> achieved via booting on the real root filesystem and doing work during
> initialization, which implies a lot less code, and is more maintainable,
> and safer (if something fails early on).
> 

You are making a very *big* assumption that the kernel can find the real root filesystem without userspace help. In cases where the kernel can't - initramfs/initmpfs is in fact very useful. 

-- 
James B <jamesbond3142 at gmail.com>


More information about the busybox mailing list