-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add all read-only compatible zpool features to grub2 compatibility #15459
Conversation
GRUB opens the boot pool in read-only mode. All read-only compatible features for zpool can be enabled and added to grub2 compatibility, as GRUB does not open the boot-pool for write. Signed-off-by: Umer Saleem <usaleem@ixsystems.com>
GRUB opens the boot pool in read-only mode. All read-only compatible features for zpool can be enabled and added to grub2 compatibility, as GRUB does not open the boot-pool for write. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Signed-off-by: Umer Saleem <usaleem@ixsystems.com> Closes openzfs#15459
GRUB opens the boot pool in read-only mode. All read-only compatible features for zpool can be enabled and added to grub2 compatibility, as GRUB does not open the boot-pool for write. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Signed-off-by: Umer Saleem <usaleem@ixsystems.com> Closes openzfs#15459
GRUB opens the boot pool in read-only mode. All read-only compatible features for zpool can be enabled and added to grub2 compatibility, as GRUB does not open the boot-pool for write. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Signed-off-by: Umer Saleem <usaleem@ixsystems.com> Closes openzfs#15459
GRUB opens the boot pool in read-only mode. All read-only compatible features for zpool can be enabled and added to grub2 compatibility, as GRUB does not open the boot-pool for write. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <mav@FreeBSD.org> Signed-off-by: Umer Saleem <usaleem@ixsystems.com> Closes openzfs#15459
#15261 notes that any feature that enables So this should probably be reverted. (I don't, personally, boot ZFS with GRUB, so this is just my summary from trying to digest those bug reports, but it seems like we should probably do something about breaking things like this...) |
@rincebrain Since this PR was opened after #15261 was reported, it seems less likely this would be the root cause. I quickly checked and this commit is not present in 2.1.x and 2.2.0, which the issue is describing. It's present from 2.2.1 onwards.
|
Sure, sorry, I wasn't trying to say just reverting this would be
sufficient, just that it was a concrete example of the concerns I voiced
earlier in the PR about grub breaking sometimes on some versions.
Wondering if we might want a versioned grub compat in addition to the
"lowest denominator" functionality, given that things like this are
probably going to keep happening over time, and people are going to want
both "as many features as possible" and "this always works with grub" as
options...
…On Mon, Feb 12, 2024, 12:12 PM Umer Saleem ***@***.***> wrote:
@rincebrain <https://github.com/rincebrain> Since this PR was opened
after #15261 <#15261> was reported,
it seems less likely this would be the root cause. I quickly checked and
this commit is not present in 2.1.x and 2.2.0, which the issue is
describing. It's present from 2.2.1 onwards.
extensible_dataset feature was added in grub2 compatibility list when it
was first introduced 3 years ago. We may proceed to remove
extensible_dataset and all features that depend on extensible_dataset,
but reverting this one would not cover all features that can enable
extensible_dataset.
—
Reply to this email directly, view it on GitHub
<#15459 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/AABUI7MVWISHRY4QLJI2X4DYTJEO7AVCNFSM6AAAAAA6SLZTC6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMZZGE3TGOJSGM>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
|
Adding a second compatibility file with minimum set of features required, seems more reasonable to me. |
Then perhaps a new |
I almost feel like the reverse might be better, where "grub2" means "every version of grub2 works with this" and "grub2-features" means "this is the most features we know of any grub2 version supporting", since people have, historically, used grub2 to try to mean "as many features as we can reliably enable without breaking boot, and no more", so moving that concept to a new name would require changing lots of expectations, whereas a new featureful one would be adding a new option while avoiding changing older expectations for this. |
Motivation and Context
GRUB opens the boot-pool in read-only mode, but not all read-only compatible zpool
features are listed in grub2 compatibility file.
Description
GRUB opens the boot pool in read-only mode. All read-only compatible features for zpool
can be enabled and added to grub2 compatibility, as GRUB does not open the boot-pool
for write.
How Has This Been Tested?
Tested by creating a boot-pool with all read-only compatible zpool features enabled and
booting from the boot-pool.
Types of changes
Checklist:
Signed-off-by
.