[OT] initramfs use cases (was: Why '-c DEV' option for switch_root?)
Laurent Bercot
ska-dietlibc at skarnet.org
Mon Dec 16 11:00:34 UTC 2013
> 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.
Show me a precise, real-life example, and I'll tell you how I would
proceed. Or agree with you.
Actually, Lauri has a point: if the root filesystem has to be in RAM
(storage-less machines) then yes, initramfs is useful - as a real
root filesystem; you probably don't even need to switch_root, which
simplifies things a lot.
But as far as machines with some kind of storage go, I've seen my
fair share of them, and I've never encountered a case where initramfs
was the best solution. I don't claim to have seen it all, though -
there might be use cases I'm not aware of.
--
Laurent
More information about the busybox
mailing list