Best path to save a binary
I need a binary to watch my raid controller, where is the best location for it?
Well, you could put them under /usr/local
Alternatively you could create a package / pbi for those files.
Under /root/ isn't always a bad place either - it would be easy to forget you left something custom in /usr/local somewhere, but if you keep it in /root/ you could setup the backup package to grab everything from there.
Also, on NanoBSD, /root/ is preserved during an upgrade, though if you're using RAID I doubt you're using NanoBSD.
Ah, that's interesting. I've been putting very small files in /conf in Nano since that is obviously preserved but it always felt wrong.
One other thing. I thought that kernel modules in /boot/modules were copied across a firmware update in Nano but I recently updated a box and found that not to be the case. Was I wrong?
Sorry to jump in but it seemed at least related.
AFAIK we don't copy /boot/modules/ since during an upgrade the old modules are more likely to break something than help (upgrading major versions, broken module could cause a kernel panic and render the system unbootable).
Hmm, yes that seems fairly obvious. I wonder where I picked up that nugget.