rc.d/zpool: change mountcritlocal dep from BEFORE to REQUIRE
In cases where the /boot directory is mounted from a different disk through /etc/fstab, /boot/zfs/zpool.cache will not be found during a rc.d/zpool run. This is because /etc/fstab mounts are mounted in rc.d/mountcritlocal, which currently runs AFTER (i.e. REQUIRE:) rc.d/zpool.
This change swaps the rcorder of rc.d/zpool's dependency on mountcritlocal from BEFORE: to REQUIRE:. This will ensure that /boot (or even /etc/ in some configurations) to be visible while searching for zpool.cache.
Automated message from ghpr: Thank you for your submission. This PR has been merged to FreeBSD's branch. These changes will appear shortly on our GitHub mirror.
This causes systems with ZFS legacy filesystems, those specified in /etc/fstab to fail to enter multi-user because mountcritlocal cannot find fstyp zfs.
Thank you for taking the time to contribute to FreeBSD! There is an issue that needs to be fixed:
- Missing Signed-off-by linesda3840446684b69d1fdf15f3159a75d6138bd6d9
This was fixed by cy@ in head after the initial commit.