-
Notifications
You must be signed in to change notification settings - Fork 38
What changes can be upstreamed? #97
Comments
I'm not sure which changes will be accepted upstream, so if you'd like to submit them that would be great. |
Yeah, I'm not entirely sure either what will be accepted, but I do have more experience and intuition about it. I'm willing to submit patches to the grub-devel list and handle feedback. Since I'm not as familiar with your code and I believe less knowledgeable than you, I expect that there may come criticisms of the patches on the list that I may not know how to respond to. My hope is that you'll be able to help resolve them. What is a good way to communicate with you about issues? Just open an issue here? or open a discussion? or something else? How do you think I should handle the SOB, (Signed-off-by)? The most ideal solution is to have you as the author of the patch, with your SOB. Then I'll add my SOB and potentially a
This is mostly good, but I see a few issues before its ready to be sent to the list. As above, what's a good way to discuss this? The biggest issue is the connect all functionality. I think you're more familiar with EFI, but can't we just connect that one handle of the loaded image? Someone recently submitted a patch to connect all EFI handles, but it was rejected because apparently that can take a very long time and seems to be frowned upon by the EFI gurus. Perhaps the We should also probably use Should grub/grub-core/loader/efi/chainloader.c Lines 80 to 102 in 635ef55
Other issues, like improper spacing and improper return code/error handling for
I think I remember seeing this too a while back, but coming to the conclusion that its more tricky than this. I think its because this only works if the file will be read sequentially, which probably none of the filesystem drivers do. But its been a while since I've looked at it. Have you tested that this works? Are you only reading sequentially from a loopback device backed by a compressed file? |
Also, it looks like there's some reasonable patches in your patches repo under the |
Just open an issue here.
|
According to EDK2's code, it connects all handles.
Yes, you are right.
We need to unload the image if b->start_image() failed, I forgot to do it. |
gzio, xzio and other decompressor allows random reads (but it's slow). If the file size is relatively small, this won't cause too much of a problem. Lines 240 to 250 in 5b20b2f
|
These are my patches, but then someone else has submitted similar patches and most of them have been accepted by upstream (e.g. https://github.com/a1ive/patches/blob/master/grub_gnu/0002-msdospart-add-missing-parameter.patch). https://github.com/a1ive/patches/blob/master/grub_gnu/0004-gptsync-fix-bug-in-CHS-calculation.patch https://github.com/a1ive/patches/blob/master/grub_gnu/0001-efi-fix-wrong-def-for-simple_text_input_ex_interface.patch |
Ok, good to know that this should not be upstreamed.
Ok, thanks for confirming that. I'm looking at the getline patch again and wondering exactly whatproblem that this solves. All I see is maybe it allows getline to be multiline if modifiers are used when pressing enter. And I'm not even sure that's true. What do you think about |
Oh sorry. This patch is not correct.
If the user accidentally presses the arrow keys, |
When GRUB2 loads an EFI application, it can pass a device path to the EFI application so that the EFI application knows its own path. (This is optional) |
Add a return value to the |
Yes, I like having cmp have a better return code. Adding |
Ok, thanks for the explanation. I've reworked the patch and have something like the second changeset. I think the author of the previous code thought that a NULL device path could not be passed to LoadImage, but it definitely can because we are using an in-memory image. I think the issue with |
Now that this project is being deprecated, it would be a shame not to salvage useful changes to send to upstream GRUB2. I'm thinking at least the
map
module could be nice. I would be willing to assist in this process, but I'd like your help in determining what might be useful to send to upstream. Does this interest you at all?The text was updated successfully, but these errors were encountered: