bugGNU GRUB - Bugs: bug #48752, Simple arithmetic functionality


You are not allowed to post comments on this tracker with your current authentication level.

bug #48752: Simple arithmetic functionality

Submitted by:  Mirko Vogt <mirco>
Submitted on:  Wed 10 Aug 2016 07:50:47 PM UTC  
Category:  None Severity:  Major
Priority:  3 - Low Item Group:  Feature Request
Status:  None Privacy:  Public
Assigned to:  None Originator Name: 
Open/Closed:  Open Release: 
Release:  Git master Reproducibility:  Every Time
Planned Release:  2.03+

Wed 10 Aug 2016 07:50:47 PM UTC, original submission:

I'd like to ask for very basic arithmetic functionality for the scripting engine of GRUB, mainly addition / subtraction, maybe even some more by e.g. taking over code from `let` or the `$((..))` syntax from *sh.

Very concrete use case would be a typical ping-pong scenario:

Counting (failed) boot attempts, storing them in the GRUB environment block and switching to a failsafe / second-system / you-name-it, once booting into a system failed `n` times.

Yes, this can be done without arithmetic operation.

But apart from it "just not being nice" (however I think nice - as in: readable - code is quite a point for the essential part of booting a system), I can think of quite a few other scenarios where basic arithmetic would really add to GRUB.

Thank you for having read my feature request till the end :)

Mirko Vogt <mirco>


No files currently attached


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by phcoder (Updated the item)
  • -email is unavailable- added by mirco (Submitted the item)

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.




    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-10-11 phcoder Priority5 - Normal => 3 - Low
        Planned ReleaseNone => 2.03+

    Back to the top

    Powered by Savane 3.4