Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 27 Sep 2024 20:13:38 -0400
From:      "Kevin P. Neal" <kpn@neutralgood.org>
To:        Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?= <des@freebsd.org>
Cc:        freebsd-questions@freebsd.org
Subject:   Re:  ZFS boot devices specification
Message-ID:  <ZvdKMrvL5kawrO0B@neutralgood.org>
In-Reply-To: <86h6ar1r62.fsf@ltc.des.dev>
References:  <86y146zbef.fsf@gmail.com> <ZtqauS9lqXPBosBR@furbag.my.domain> <8634md11w4.fsf@gmail.com> <ZtvYgD4RRUI349Q0@furbag.my.domain> <86h6ar1r62.fsf@ltc.des.dev>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Sep 07, 2024 at 04:20:37PM +0200, Dag-Erling Smørgrav wrote:
> Karl Vogel <vogelke@pobox.com> writes:
> > Ludovit Koren <ludovit.koren@gmail.com> writes:
> > > I already had in /boot/loader.conf.  So these kernel variable
> > > settings do not solve the problem.
> > No, it's the "mountfrom=" line.
> 
> You shouldn't need to specify `mountfrom` manually.  The loader will
> check the `bootfs` property of all available pools, so just make sure
> your root pool has `bootfs` set correctly.  But I don't think that's
> Ludovit's problem, anyway.  It sounds like the kernel is somehow trying
> to mount the root filesystem before the disks are available (which
> shouldn't happen; the last thing the kernel does before mounting root is
> wait for all buses to settle), or maybe the pool can't be imported

It's been a few years since I checked this, and last I checked it was true
that it didn't attempt to mount root until the bus reported that it was
ready. However, it did _not_ wait for all devices attached to the bus to
report ready. The result was, again a few years ago, that mounting root
would fail for me because the umass device wasn't yet done making the drive
device available.

To hack around this there are/were values to put in a loader.conf a value
to make the process delay some number of seconds before trying to mount
root.

I haven't tried to boot from an SD card in a long time. Hopefully today
things are better.
-- 
Kevin P. Neal                                http://www.pobox.com/~kpn/

Seen on bottom of IBM part number 1887724:
DO NOT EXPOSE MOUSE PAD TO DIRECT SUNLIGHT FOR EXTENDED PERIODS OF TIME.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?ZvdKMrvL5kawrO0B>