Thanks toomas I tried some googling but I couldn't find out what's usually in `boot_archive', nor could I find anything in illumos-gate relating to a default, nor in oi-userland. Is boot_archive generated per distro or is it in illumos-gate?
I read the bootadm(8) man page hoping for some answers but none came. Although it did mention the available archive formats, does that mean that boot_archive is archived into an (eg cpio) archive, and then mounted RO by the kernel so it can load the modules necessary to talk to the hardware? sorry for the silly questions. On Fri, Jul 26, 2024, 9:36 AM Toomas Soome via illumos-discuss < discuss@lists.illumos.org> wrote: > > > > On 26. Jul 2024, at 14:28, 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. > > > > I was thinking the second option would be better. > > > > Is this possible? Where in the source would I need to make the > modifications? > > Our current setup is loading kernel and boot_archive, which is initial > rootfs in memory — depending on file system type, you can end up presenting > it to userland or switching to some other file system - one can use ufs to > build boot_archive and then use it as rootfs (this is scenario smartos is > using and how the live boot/install images are working). > > rgds, > toomas ------------------------------------------ illumos: illumos-discuss Permalink: https://illumos.topicbox.com/groups/discuss/Tc9bfa679c7294ee7-M3d07e17b29786ca38c2f0ee3 Delivery options: https://illumos.topicbox.com/groups/discuss/subscription