[Bug 268157] /etc/rc.d/zpool runs too early, before usb disks available

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 05 Dec 2022 16:52:19 UTC

--- Comment #6 from Barney Wolff <barneywolff@gmail.com> ---
Does appear to be the same problem.

As I read the zpool_main code, import -a processes cache file entries
sequentially, so if one import fails badly, others will not get done. One
brute-force fix for that would be to fork for each one. Presumably there is
already code to serialize updates to the cache file, as potentially multiple
root processes could do imports simultaneously.

I think it's an open question what import should do if a vdev doesn't exist
(yet). It might wait forever. I don't know how usb signals that it's done, or
whether zpool import can know if there are any usb vdevs, so always waiting for
usb to finish doesn't seem right.

In my own case waiting for root mount would not help, as root is on the sd card
while I want usr, var, home on a usb disk pool.

You are receiving this mail because:
You are the assignee for the bug.