Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rc.d/zpool: change mountcritlocal dep from BEFORE to REQUIRE #1614

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

svmhdvn
Copy link
Contributor

@svmhdvn svmhdvn commented Mar 14, 2025

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.

In cases where the `/boot` directory is mounted from a different disk, `/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`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant