I wonder if I should consider this a bug, a feature, or a 'duh'.
Whenever I build a new world and kernel, I routinely invoke
I found an interesting snag with this. I wanted to test something using amd, and it needs a couple of NFS things I do not compile into the kernel (as I don't use any NFS anywhere). Normally, the invocation of amd will simply load the NFS necessities as modules, and everything works. However, I got some interesting errors about modules that could not be found. Of course they exist, they're in /boot/kernel/, as usual.
After a bit of brain crunching, an aha moment overcame me, and I ran
I'm wondering whether I should make any report of this, or that this is simply a case of something that's entirely logical that I simply missed because I never ran into it. In that case I will make it my business to always reboot one more time after moving the working kernel and modules to their final location. But I do feel that /boot/kernel should always be tried, at least.
Whenever I build a new world and kernel, I routinely invoke
/sbin/nextboot -k kernel.NEW/boot/kernel
to make sure I can actually boot with the newly compiled kernel. If that works, I move /boot/kernel to /boot/kernel.old, and /boot/kernel.NEW/boot/kernel to /boot/. However, I do not reboot after that, I just leave everything running. It's working.I found an interesting snag with this. I wanted to test something using amd, and it needs a couple of NFS things I do not compile into the kernel (as I don't use any NFS anywhere). Normally, the invocation of amd will simply load the NFS necessities as modules, and everything works. However, I got some interesting errors about modules that could not be found. Of course they exist, they're in /boot/kernel/, as usual.
After a bit of brain crunching, an aha moment overcame me, and I ran
kldstat -v
. It showed that every module that was listed there originated from /boot/kernel.NEW/boot/kernel; a location that no longer existed. Up until now, I had assumed that modules would always be searched in /boot/kernel/, whether one booted from there or not, but apparently this is not the case. And yes, a reboot was all it took.I'm wondering whether I should make any report of this, or that this is simply a case of something that's entirely logical that I simply missed because I never ran into it. In that case I will make it my business to always reboot one more time after moving the working kernel and modules to their final location. But I do feel that /boot/kernel should always be tried, at least.