Solved How To Set mountroot zfs:zroot/ROOT/default On Boot Up?

Hi,

I just set a new bootup device for the FreeBSD installation.

The kernel is being loaded on boot up from that drive, but then the systems asks for mountroot.

Entering zfs:zroot/ROOT/default make the system boot fine.

How to set mountroot zfs:zroot/ROOT/default so mountroot won't prompt anymore?
 
Hi,

I just set a new bootup device for the FreeBSD installation.

The kernel is being loaded on boot up from that drive, but then the systems asks for mountroot.

Entering zfs:zroot/ROOT/default make the system boot fine.

How to set mountroot zfs:zroot/ROOT/default so mountroot won't prompt anymore?
mount the device to /mnt/boot/loader.conf
and add line
Code:
vfs.root.mountfrom="zfs:zroot/ROOT/default"
 
You can also set the bootfs property: zpool set bootfs=zroot/ROOT/default zroot
I didn't try it yet, but does your solution work on all setups like when you have a new boot device made by
fdisk -BI /dev/ada0
bsdlabel -B -w ada0s1
newfs -U -O1 /dev/ada0s1a
boot0cfg -v -B -t1 ada0

❓
 
Back
Top