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: NoneSeverity: Major
Priority: 3 - LowItem Group: Feature Request
Status: NonePrivacy: Public
Assigned to: NoneOriginator Name: 
Open/Closed: OpenRelease: 
Release: Git masterReproducibility: 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
  • -unavailable- added by phcoder (Updated the item)
  • -unavailable- added by mirco (Submitted the item)
  •  

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

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 11 Oct 2016 12:40:51 PM UTCphcoderPriority5 - Normal=>3 - Low
      Planned ReleaseNone=>2.03+

    Back to the top


    Powered by Savane 3.1-cleanup1