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

zfsbootmenu: remove legacy root= usage/design #496

Merged
merged 1 commit into from
Oct 5, 2023
Merged

Conversation

zdykstra
Copy link
Member

@zdykstra zdykstra commented Oct 5, 2023

ZFSBootMenu has danced around $root for a few years now, as a holdover from very early design decisions picked up from Dracut. We don't actually need to tie ourselves to that variable - and in fact, a lot of the early startup process can be simplified by no longer trying to stuff so much logic into it.

To that end, the legacy but undocumented support for root=zfsbootmenu:POOL=pool has been completely removed. root on the ZBM KCL is no longer honored. zbm.prefer with the documented syntax is now the only way to tell ZFSBootMenu which pool should be preferentially used in the boot process. Accordingly, the global zbm_prefer_pool variable is now set when a pool should be preferred, and the accompanying zbm_require_pool variable is used to indicate how firm that pool requirement is. One quirk of this is that a pool name of zfsbootmenu can now actually be a value that zbm.prefer will respect/honor.

ZFSBootMenu has danced around `$root` for a few years now, as a holdover from
very early design decisions picked up from Dracut. We don't actually _need_ to
tie ourselves to that variable - and in fact, a lot of the early startup process
can be simplified by no longer trying to stuff so much logic into it.

To that end, the legacy but undocumented support for
`root=zfsbootmenu:POOL=pool` has been completely removed. `root` on the ZBM KCL
is no longer honored. `zbm.prefer` with the documented syntax is now the only
way to tell ZFSBootMenu which pool should be preferentially used in the boot
process. Accordingly, the global `zbm_prefer_pool` variable is now set when a
pool should be preferred, and the accompanying `zbm_require_pool` variable is
used to indicate how firm that pool requirement is. One quirk of this is that a
pool name of `zfsbootmenu` can now actually be a value that `zbm.prefer` will
respect/honor.
@zdykstra zdykstra changed the title RFC: early startup decluttering, bootfs-related warnings zfsbootmenu: remove legacy root= usage/design Oct 5, 2023
@zdykstra zdykstra merged commit 57b5572 into master Oct 5, 2023
3 checks passed
@zdykstra zdykstra deleted the yo-peep-this branch October 5, 2023 16:48
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