Solved Kernel modules path.

My /boot/loader and /boot/kernel exist on different partitions.
Which paths are used for the modules.
sysctl kern.module_path shows,
Code:
/boot/kernel;/boot/modules;/boot/dtb;/boot/dtb/overlays
But are these module paths on the partition where the loader is located or on the partition where the kernel is located ?
Currently I have copied the modules directory on both partitions as I don't know which one is used and when.
PS: The loader.conf contains also references to some modules. And some modules are dependend on other modules wich are "automatic" loaded. This happens even before init is started. (I think ???)
My /boot/loader.conf contains:
Code:
opensolaris_load="YES"
zfs_load="YES"
cc_cubic_load="YES"
 
After some tests it seams the modules are loaded from the .../module/ directory next to the .../kernel/ directory.
And not from the .../module/ directory next to the ../loader binary.
The filesystem with the loader binary does not impose a .../kernel/ directory nor .../modules/ directory.
 
Linux does not detect my zpool correctly and thinks my zpool takes the whole disk instead of a partition.
As such i cannot use grub to boot freebsd.
But grub can easily detect the a ufs partition and chainload the freebsd /boot/loader.
In the loader.conf i specified the zfs root partition where also the kernel can be found.
In this setup i have root on zfs but boot on ufs.
 
Back
Top