4 ms·
Yes, it's a fun exercise to build a tiny Linux install that's fully on the initrd. Not that you'd want to have that kind of system in daily use outside of speci
by exDM69 10y ago
Yes, it's a fun exercise to build a tiny Linux install that's fully on the initrd. Not that you'd want to have that kind of system in daily use outside of special applications.
> I think it's even possible to embed the initrd in the kernel binary itself, but I've never really investigated that.
Yes, the kernel config has an option to embed the initrd in the kernel image. I'm not sure if there are any advantages to this.
- arca_vorago 10y agoI use the initramfs method to put an small ssh server in that I can use to unlock full disk encrypted headless boxen, so I could see initrd in the kernel being used in a similar way.
- yellowapple 10y agoThe advantage to embedding the initrd is usually that you don't have to worry about a separate initrd (for example, if you're reliant on some really basic bootloader). It's also more in-line with, say, OpenBSD (AFAICT) which doesn't use a separate initrd/initramfs (not sure if this is true of all BSDs).
- nickysielicki 10y ago> I'm not sure if there are any advantages to this This comes to mind: http://kroah.com/log/blog/2013/09/02/booting-a-self-signed-linux-kernel/ http://kroah.com/log/blog/2013/09/02/booting-a-self-signed-l...
- amboar 10y agoHaving the initrd merged with the kernel is slightly less hassle when netbooting to test during kernel development