Re: HowTo: Making a bootable ISO w/ miniroot.kmod etc.

David Laight <[email protected]>
Newsgroups gmane.os.netbsd.devel.installation
Message-ID <[email protected]>
On Sat, Nov 22, 2008 at 06:32:32PM +0100, Hubert Feyrer wrote:
> 
> P.S.: I wonder if/how module loading works in a PXE boot environment.
>       anyone got experiences with that?

I wonder about that as well, especially when I use 'boot -i' and
specify that the root filesystem is on a local disk even though the
kernel was loaded from the pxe boot stuff.

I did have some thoughts...

If a kernel.o file were generated during the build (ie do an 'ld -r'
of all the object files, prior to the final link), then it ought
to be possible to use 'ld' to link some modules into a final
fully fixed up kernel image.

Something needs to know about the modules (and any dependancies) in
order to get the initialisation code run. But that can't be too hard.

The kernel build itself might link in some modules (eg the module
loader code!) which could be excluded in specific environments.

	David

-- 
David Laight: [email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.