I have successfully booted into a NetBSD kernel with a custom ramdisk that has a statically linked init that does nothing.
Baby steps!
Discussion
I have successfully booted into a NetBSD kernel with a custom ramdisk that has a statically linked init that does nothing.
Baby steps!
Yeah, well, I'm not gonna do that from C, and /rescue/mount_mfs is big. But perhaps it fits.
Buut, there's mount_tmpfs! And I suppose I actually want that, not mfs, so lets see how hard it is to do in C.
Nice. That works. So the next step then is:
tmpfs as /altroot/dev/dk0 as /altroot/tbd/altroot/tbd to /altroot/altroot/usr/pkg/sbin/dinit