Skip to contentSkip to conversation

Initramfs and TMPFS!

DISCUSSION Kent Robotti 1 participant 1 message Aug 26, 2005

lore
Share & tools
lore
#0 lore raw
Quoted 4 lines

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).

The kernel already includes gunzip for itself, so it just needs an unarchiver (tar or cpio) which should just add a few Kb.

Every self-extracting executable would require the builtin code to extract itself.

The kernel code to recognize and execute the self-extracting code, would probably be the same size as an unarchiver (tar or cpio).