-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
OcBootManagementLib: Add InstanceIdentifier, and ability to target .contentVisibility to specific instances #473
Conversation
@mikebeaton ... Thanks. Will try the artefact at some point over the weekend. One thing I had noticed earlier, as an aside, is that the available constant was not used in the |
@mikebeaton ... I tried this and it does not appear to be working. Both Actually, I think I will reactivate the original PR and complete this based on my vision:
|
I have tested and it definitely works for me. I'll add some additional debug lines. |
Will test again when done |
I've added some additional debug messages in an extra commit. Let's confirm (e.g. initial debug log to compare to subsequent ones) that you've got a |
a77ff05
to
c7f728a
Compare
Actually, I suspect I know what the issue would be. Existing .contentVisibility files are lax about having or not having terminating \r\n or \n, and actually about having any old text as long as it starts with Disabled or Auxiliary, which may or may not have been intended. Let me just upgrade my changes to handle terminating linefeeds gracefully. |
330982b
to
1c41405
Compare
@dakanji - Okay, this latest version:
I suspect that should get it working for you. |
It is hiding the item now but has an issue that is not present in the #446 implementation in that when you go back to an older version of OC, that has the current existing implementation, they disable the item. That is, they treat things as if you just entered Will be away for long stretches and that presumably that can be overcome and a final decision made. |
Okay, thanks for taking the time to confirm this version all works now. And for taking the time to convince those-who-make-the-decisions that the feature was worth having, in the first place. If Vit does go with this version of the feature, certainly due another thx to yourself in the Changelog, which I'll add. I'll leave my PR as is, for now - I'm not sure there's anything to fix, in terms of the fact that the 'qualified' visibilities for this implementation of the idea will be treated as unqualified visibilities if seen by the old .contentVis code. (Actually, it's unclear to me how the proposed visibilities for #446 would not be the same? All that matters in the old code, I believe, is the word the file starts with.) |
Noted and appreciated although the credit thing is not so important.
You are correct. I had started on an initial that used different instruction names for legacy compatibility but stopped as I thought (prejudging going on) it would trigger a push back and didn't cleanup and finish it but had the binary in my ESP. When then swapping various binaries, I got mixed up as I had forgotten about that item as well as having that binary as the "446" binary. Anyway, I now think handling legacy instances is important and will finish then push that code. |
I have updated the commit so that the As @dakanji correctly points out, it is preferable that the format of 'new style' content visibility should be such that older versions of OpenCore treat it as invalid and display the entry - however, older versions of OpenCore, since 7b7d6ea, will accept any characters after |
37b687d
to
a4da464
Compare
…ontentVisibility to specific instances
Redoes #446 in the manner discussed towards the end of that thread, as mentioned by PM to @dakanji.
@dakanji, please can you try the build artefacts now that they're ready, and let me know if this covers your needs?
@vit9696, I believe this is as you discussed/intended, but if you can confirm that it looks about right, as and when you have a moment.