Initramfs and TMPFS!
Quoted 5 lines · On Thu, Aug 25, 2005 at 12:32:50AM -0400, [email protected] wrote:
Quoted 2 lines
Right, but it would be nice to have that option if initramfs using tmpfs becomes part of the kernel.
But it's not needed so why add bloat?
I'm not subscribed, so sorry if this doesn't fall into the original thread. I'm curious as to why the kernel has to include the decoder - why you can't just run a self-extracting executable in an empty initramfs (with a preset capacity if needs be).
Quoted 10 lines · Alan Jenkins
Quoted 5 lines · On Thu, Aug 25, 2005 at 12:32:50AM -0400, [email protected] wrote:
Quoted 2 lines
Right, but it would be nice to have that option if initramfs using tmpfs becomes part of the kernel.
But it's not needed so why add bloat?
I'm not subscribed, so sorry if this doesn't fall into the original thread. I'm curious as to why the kernel has to include the decoder - why you can't just run a self-extracting executable in an empty initramfs (with a preset capacity if needs be).
How would that help? It's still a decoder in the kernel, so why not use one that's well tested instead of using whatever the archive thinks is good?
Also remember the code has to be cross platform: an in-kernel decoder will just work on any platform, a self-extracting binary will probably only work on one platform.
Besides, initramfs was made to set up userland. A self-extracting binary creates a chicken-and-egg problem: when run it will create a userland, but in order to be run it needs a userland.
Erik
Signature · 2 lines
+-- Erik Mouw -- www.harddisk-recovery.com -- +31 70 370 12 90 -- | Lab address: Delftechpark 26, 2628 XH, Delft, The Netherlands
Quoted 3 lines · Alan Jenkins
I'm curious as to why the kernel has to include the decoder - why you can't just run a self-extracting executable in an empty initramfs (with a preset capacity if needs be).
You could do tht right now if you wished.
We just support decompression in the kernel because it's not overly painful to do so (the code exists and works fairly well for the most part). The code to do so isn't ver large and it's marked __init too (well, it should be).