Bug 242189

Summary: ZFS filesystems are not mounted from ATA on startup due to rc <-> kernel race if root is on NVMe
Product: Base System Reporter: Oleg Sidorkin <osidorkin>
Component: miscAssignee: freebsd-bugs mailing list <bugs>
Status: New ---    
Severity: Affects Only Me    
Priority: ---    
Version: CURRENT   
Hardware: Any   
OS: Any   

Description Oleg Sidorkin 2019-11-24 13:41:04 UTC
Looks like root_hold_wait should be added to /etc/rc.d/zfs script after r355010.

If root is on NVMe and e.g. /var/db is on ZFS on top of ATA then root gets mounted and /etc/rc.d/zfs get started before ata bus scan completed.  System boots with ZFS filesystems unmounted. There is root_hold_wait calls in /etc/rc.d/mountcritlocal, but zfs filesystems are not mentioned in fstab.