gptzfsboot targeting wrong vdev

Martin Simmons martin at lispworks.com
Mon Jul 20 09:41:38 UTC 2020


>>>>> On Sun, 19 Jul 2020 10:15:21 +0200 (CEST), Christian Kratzer said:
> 
> Hi,
> 
> On Sat, 18 Jul 2020, Kevin P. Neal wrote:
> 
> > On Tue, Jul 14, 2020 at 08:34:30AM +0300, Andriy Gapon wrote:
> >> On 13/07/2020 21:02, Christian Kratzer wrote:
> >>> In the future I will ensure  to have the first partition after boot to be the
> >>> zroot.
> >>
> >> By the way, I've been considering changing our ZFS boot code so that it does not
> >> treat a pool as a candidate unless it has bootfs explicitly set (non-default value).
> >> I think that that would be a reasonable change.  And not hard to do.
> >> But never got around to doing it.
> >
> > Would that include full dataset paths in vfs.root.mountfrom? Because I
> > load the kernel from one ufs filesystem and then boot from a zfs pool
> > with the full dataset path/name (which term?) specified. It'd be a shame
> > to lose that.
> 
> is that not what load vfs.root.mountfrom in loader.conf is for
> 
>     vfs.root.mountfrom="zfs:zroot/ROOT/default"
> 
> Once the first stage has located the drive to boot from it will be in the loader
> and will have consumed /boot/loader.conf
> 
> The bootme property is just there to point the first stage at the correct
> device from where to get the loader from.

Also, don't confuse bootme and bootfs.

bootme is a GPT attribute used by gptboot, for booting from UFS.

bootfs is a zpool property used by gptzfsboot, for booting from ZFS.

__Martin


More information about the freebsd-fs mailing list