How to set zpool root mountpoint to /?

I'm booted on livecd but if it try to set the mountpoint of my root zpool to / it conflicts with the livecd's / mountpoint then no z commands work. so i set it to /mnt but then it doesnt boot, it needs to be /. How to get around this chicken and egg?
 
I'm booted on livecd but if it try to set the mountpoint of my root zpool to / it conflicts with the livecd's / mountpoint then no z commands work. so i set it to /mnt but then it doesnt boot, it needs to be /. How to get around this chicken and egg?
First: what SirDice said.

Second... booting from a ZFS pool has little to do with its mountpoint. In fact... you don't even really need to mount the pool in order to set this up, only import it which could also be done with # zfs import -a, then let FreBSD worry about the rest. From the top of my head this would make the pool automatically available "somewhere within the filesystem" (<= but I could be mistaken about this!).

My point though: if you want to mark a ZFS pool as 'bootable' then all you'd have to do set the bootfs property which can be done as soon as a pool becomes accessible; which it is after you've imported it. Don't really need a mountpoint for that, just a reference to the pool; (edit): see also zpool-set(8).
 
What do you exactly want to achieve ?
Do you want to repair a broken system ?
Just trying to set up a new system, the basics.

"First: what SirDice said."
I couldn't make heads or tails out of that. Had no idea what that meant.

I ended up importing with -N option so it doesn't mount.
 
Just trying to set up a new system, the basics.
So, doing the partitioning manually?

# zpool create -R / -m <temp mount-point> <dataset name> <device>.

I don't use the BSD installer myself but iirc you need to mount your install media somewhere in /tmp? Check the shown instructions.

But yah, ^ that's how to do it.
 
Back
Top