]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
wait for device mounts in zpool and dumpon
authorChuck Tuffli <chuck@FreeBSD.org>
Fri, 5 Mar 2021 16:13:23 +0000 (08:13 -0800)
committerChuck Tuffli <chuck@FreeBSD.org>
Sat, 19 Nov 2022 17:40:48 +0000 (09:40 -0800)
commitd878a66a9a77fc67801000bfab8fa77b2b3faecc
treeed88fda3ac43694f6597b9b7aef35d6859435ecf
parentd3b97a1ea01233486ddc7693e8a53c59d331c8c2
wait for device mounts in zpool and dumpon

If the root file system is composed from multiple devices, wait for
devices to be ready before running zpool and dumpon rc scripts.

An example of this is if the bulk of the root file system exists on a
fast device (e.g. NVMe) but the /var directory comes from a ZFS dataset
on a slower device (e.g. SATA). In this case, it is possible that the
zpool import may run before the slower device has finished being probed,
leaving the system in an intermediate state.

Fix is to add root_hold_wait to the zpool and dumpon (which has a
similar issue) rc scripts.

PR: 242189

(cherry picked from commit f30f11f878fe2aa535cd286810d31c92793a3d95)
libexec/rc/rc.d/dumpon
libexec/rc/rc.d/zpool