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:  Configuration Severity:  Major
Priority:  3 - Low Item Group:  Feature Request
Status:  None Privacy:  Public
Assigned to:  None Originator Name:  Ignat Korchagin
Open/Closed:  Open Release: 
Release:  Git master Reproducibility:  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
  • -email is unavailable- added by phcoder (Updated the item)
  • -email is unavailable- added by arvidjaar (Posted a comment)
  • -email is unavailable- added by ignat (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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2016-10-11 phcoder Priority5 - Normal => 3 - Low
    2016-03-02 phcoder Planned ReleaseNone => 2.03+
    2015-09-04 ignat Attached File- => Added grub2.patch, #34813

    Back to the top

    Powered by Savane 3.6