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

Submitter:  Ignat Korchagin <ignat>
Submitted:  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:  Git master
Release:  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>
Group 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
elif
    # secure boot is disabled: enable it, boot insecure OS etc
fi


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>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

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)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    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.13-4448.
    Corresponding source code