Skip to content
Snippets Groups Projects
Select Git revision
  • master default protected
  • early-display
  • variant-emmc-nvme-boot
  • 2023-01-25
  • v3
  • variant-emmc-nvme-boot
  • 2020-06-01
7 results

bootefi.c

Blame
  • Forked from Reform / reform-boundary-uboot
    Source project has a limited visibility.
    • Alexander Graf's avatar
      0f4060eb
      efi_loader: Pass proper device path in on boot · 0f4060eb
      Alexander Graf authored
      
      EFI payloads can query for the device they were booted from. Because
      we have a disconnect between loading binaries and running binaries,
      we passed in a dummy device path so far.
      
      Unfortunately that breaks grub2's logic to find its configuration
      file from the same device it was booted from.
      
      This patch adds logic to have the "load" command call into our efi
      code to set the device path to the one we last loaded a binary from.
      
      With this grub2 properly detects where we got booted from and can
      find its configuration file, even when searching by-partition.
      
      Signed-off-by: default avatarAlexander Graf <agraf@suse.de>
      0f4060eb
      History
      efi_loader: Pass proper device path in on boot
      Alexander Graf authored
      
      EFI payloads can query for the device they were booted from. Because
      we have a disconnect between loading binaries and running binaries,
      we passed in a dummy device path so far.
      
      Unfortunately that breaks grub2's logic to find its configuration
      file from the same device it was booted from.
      
      This patch adds logic to have the "load" command call into our efi
      code to set the device path to the one we last loaded a binary from.
      
      With this grub2 properly detects where we got booted from and can
      find its configuration file, even when searching by-partition.
      
      Signed-off-by: default avatarAlexander Graf <agraf@suse.de>