On 2/6/21 8:16 PM, 5--- via blfs-support wrote:
Sure, that is the 'init' program (/sbin/init) which needs to be
replaced. Than you can strip down your system to be a two-files-OS (1.
kernel, 2. your init). Doubt whether it is really fun ;-)

Thank you everyone for the replies.
I tried this on a full linux distro and ran into trouble. A tutorial on this would be interesting. How to put together a kernel, bootloader, and init script or binary (preferably one simple enough you can write yourself), sorting out the initrd if necessary, statically compiling any binaries so you can start with an absolute minimum.

Well you theoretically could modify a shell to run without glibc, but portions of it would need to drop to assembly language to make calls ot the kernel.

You can read this to give you clues: http://www.muppetlabs.com/~breadbox/software/tiny/teensy.html

Have fun.

  -- Bruce
--
http://lists.linuxfromscratch.org/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to