Hacker News new | ask | show | jobs
by otabdeveloper4 1835 days ago
> Just add a Kernel and bootloader and one can boot most images.

Certainly not true of any of the images I work with.

1 comments

What sort of images are you working with? I can fairly straightforwardly boot debian:stable with no modifications to the image using direct kernel boot. Is everything perfect? No, but it does boot.
None of my images bundle a Linux distribution.

(Indeed, most don't even bundle bash or coreutils.)

Sure, but that still doesn’t necessarily mean it won’t work. I can successfully direct kernel boot a VM where the entire filesystem is just a single statically-linked binary and it boots and runs it (just set init= or put the binary at /sbin/init). Some programs might need /proc /sys /tmp, etc., and if they do a bit more work needs to be done of course, but not all do.