-
Notifications
You must be signed in to change notification settings - Fork 190
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
supporting multiple tries per partition (boot counter) in GRUB #1250
Comments
If I remember correctly, the main issue was decrementing the TRY counters. If that's possible in new grub versions, we'd be happy to take a PR implementing that (and adding a second example script to contrib). |
I'm using the following patch for grub that implements a increment/decrement command: I also have a patch for rauc that creates a boot loader type "grubalt" to work with this feature. The grub bootscript is basically a port of the rauc u-boot boot selection script. If there is any interest, I can share both. |
thanks mbessler, very interesting! Ive got a double for loop working now in the grub bootscript to implement a 3 try a b system. |
Before I found this patch, I had used some "not very pretty" code to increment/decrement using an if/then/else construct that handled numbers from around 0-10. However should the value be something outside that range, it could not handle it well. |
@mbessler Do you know it they plan to upstream this change? I've not found it in https://git.savannah.gnu.org/cgit/grub.git/log/ so far.
I'd be interested! We could at least take a look if it could be integrated into RAUC without too much overhead. As long as a patched GRUB is needed, I'd like to avoid unnecessary extra code. |
A related discussion can be found at https://pagure.io/fedora-iot/issue/12. |
@jluebbe no idea, I don't run or follow Fedora/RH, just found the patch useful. It would seem that the increment/decrement would not be a controversial change, but I have not looked into Grub upstream (other than checking for the existence of the feature). Grubalt bootchooser pull request opened: #1275 |
I was not able to find an example of a GRUB configration to allow more than one try per rauc slot.
Maybe with "test" and "eval" or something?
Or is only one try per slot possible with GRUB?
The text was updated successfully, but these errors were encountered: