How do you mount /boot?

cracauer@

Developer
If you have a separate /boot partition you can't just mount it at /boot after the system it up. That is because all the boot stuff is in a subdirectory boot/, so you would end up with e.g. /boot/boot/kernel/kernel and updates would go into the wrong place.

Is there a more elegant way to solve this than mounting the partition elsewhere and then use a NULL mount to /boot?

I don't think I can configure this since /boot/loader.conf already hardcodes the directory before loader.conf is loaded.
 


N/A why you want this

what do you think with mfsboot ?
 
Is there a more elegant way to solve this than mounting the partition elsewhere and then use a NULL mount to /boot?
I think no. I can just tell from memory what the installer of 11 did when using ZFS and GELI (back then, booting directly from GELI wasn't possible yet, so separating /boot was necessary): It created an unencrypted "bootpool" containing /boot, mounted that at /bootpool and just symlinked /boot. No, that's not "elegant" either.

I long since removed that separate pool and moved /boot directly to where it belongs....
 
In the loader prompt you can always type show to see if there is a variable you can set to do this. Maybe set loaddev ?

Is this the boot partition created with bsdinstall(8) ?
It's not, I did it myself.

The problem with setting variables is that I don't have a place to put such settings on disk. loader.conf is already relative to /boot
 
Back
Top