Solved /etc on a zfs dataset

Hello

I installed FreeBSD on a ZFS root and made /etc a separate dataset, which resulted in a not booting machine.

Code:
cannot open /etc/rc: No such file or directory

Is there any way to tell FreeBSD/zfs to mount /etc at once, or am I forced to move /etc to the default dataset?
 
Last edited by a moderator:
It needs to be on the root filesytem as that's the only filesystem that's mounted when the system boots.
 
Additionally, the default layout is boot environment friendly and having the <pool>/ROOT/default dataset contain the /etc directory ensures it matches and provide a cohesive system with the rest of the boot environment.
 
For similar reasons you must have a /boot directory on the filesystem that is used for booting because the bootcode (both UFS and ZFS bootcode work the same way) will be looking for the /boot/loader binary from that filesystem.
 
Back
Top