Okay, I didn't realize that. So the bootloader loads the modules into memory and informs the kernel where the modules are?
If that's the case, then would it be possible to hijack the bootloader to load a custom module which would just mount a tmpfs? (Can a module mount a filesystem by itself, without intervention from the main kernel?) As for why, I've been burned too many times by file system corruption from sudden power loss etc (I know ZFS is super good, but Im pretty sick of fs issues). If there are any detailed man pages on the boot process I'd love to read them, ive already read the boot(8) man page though. On Fri, Jul 26, 2024, 9:01 AM Peter Tribble <peter.trib...@gmail.com> wrote: > On Fri, Jul 26, 2024 at 12:28 PM <678...@gmail.com> wrote: > >> Hello list, >> >> I'm new to illumos, but I have a bit of experience with Linux and the >> *BSDs. >> >> I was wondering if it was possible to embed a rootfs image into the >> kernel, as a binary blob, and either mount as a RO fs, or mmap() it from >> somewhere in the kernel, and use it as a tmpfs. >> > > First, an observation: illumos has a modular kernel. Therefore, in order > for it to access a file system > (the rootfs image in this case) it needs to load the file system driver > modules. which it does by reading > the filesystem... Normally, it has external help, specifically from the > bootloader. > > Which leads to the second thing, which is a question: what are you trying > to do here? It sounds like > an interesting experiment, but I'm not sure what the objective is. > > >> I was thinking the second option would be better. >> >> Is this possible? Where in the source would I need to make the >> modifications? >> >> Thanks list. >> > > > -- > -Peter Tribble > http://www.petertribble.co.uk/ - http://ptribble.blogspot.com/ > *illumos <https://illumos.topicbox.com/latest>* / illumos-discuss / see > discussions <https://illumos.topicbox.com/groups/discuss> + participants > <https://illumos.topicbox.com/groups/discuss/members> + delivery options > <https://illumos.topicbox.com/groups/discuss/subscription> Permalink > <https://illumos.topicbox.com/groups/discuss/Tc9bfa679c7294ee7-Me0ac74d996d2040cc8947ece> > ------------------------------------------ illumos: illumos-discuss Permalink: https://illumos.topicbox.com/groups/discuss/Tc9bfa679c7294ee7-M34a324169129f0c8b6e52bb8 Delivery options: https://illumos.topicbox.com/groups/discuss/subscription