bugGNU GRUB - Bugs: bug #45876, efi: add a command to read efi...


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

bug #45876: efi: add a command to read efi variables from shell and configuration files

Submitted by:  Ignat Korchagin <ignat>
Submitted on:  Fri 04 Sep 2015 12:14:00 PM UTC  
Category: ConfigurationSeverity: Major
Priority: 3 - LowItem Group: Feature Request
Status: NonePrivacy: Public
Assigned to: NoneOriginator Name: Ignat Korchagin
Open/Closed: OpenRelease: 
Release: Git masterReproducibility: Every Time
Planned Release: 2.03+

Sun 13 Sep 2015 06:47:02 PM UTC, comment #1:

Please send patch to grub-devel for review. It contains unaligned memory access and interpretation of string is rather questionable. Unfortunately bug tracker is not really suitable for patch reviews. Thank you.

Andrei Borzenkov <arvidjaar>
Project Member
Fri 04 Sep 2015 12:14:00 PM UTC, original submission:

We added a module to able to read EFI variables from configfile. Currently we use it for Secure Boot. This allows us to do following in grub.cfg:

# check whether Secure Boot is enabled
get_efivar -t uint8 SecureBoot efi_secure_boot

if [ $efi_secure_boot = 1 ]; then
# secure boot is enabled, boot our secure OS
# secure boot is disabled: enable it, boot insecure OS etc

We would like to contribute it back because it seems useful for the community. Feel free to change copyright information if needed.

Ignat Korchagin <ignat>


Attached Files
file #34813:  grub2.patch added by ignat (5KiB - text/x-patch)


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 arvidjaar (Posted a comment)
  • -unavailable- added by ignat (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 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 11 Oct 2016 01:47:42 PM UTCphcoderPriority5 - Normal=>3 - Low
    Wed 02 Mar 2016 10:45:43 AM UTCphcoderPlanned ReleaseNone=>2.03+
    Fri 04 Sep 2015 12:14:00 PM UTCignatAttached File-=>Added grub2.patch, #34813

    Back to the top

    Powered by Savane 3.1-cleanup1