Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create script to add / remove efibootmgr entries #39

Open
sundarnagarajan opened this issue Dec 10, 2018 · 0 comments
Open

Create script to add / remove efibootmgr entries #39

sundarnagarajan opened this issue Dec 10, 2018 · 0 comments

Comments

@sundarnagarajan
Copy link
Owner

sundarnagarajan commented Dec 10, 2018

Related to following issues:

Primarily this is an upstream bug - distro does not call efibootmgr properly to add boot entry.
It could be that distro tries to create boot entry with bootia64.efi and RDP-1430 with older UEFI / BIOS/ firmware only supports 32-bit EFI applications.

To create a boot entry using efibootmgr, we need:

  • Disk device with EFI partition
  • EFI partition number on disk - can be found automatically using bootutils scripts
  • Path to bootia32.efi (or bootia64.efi)

Script design:
Parameters:

  • Operation: add or remove
  • Disk device
  • If operation == 'add':
    • --32bit or --64bit - will choose .efi file
    • --efi_file=bootia32.efi or --efi_file=bootia64.efi (or anything else that exists)
      If --efi_file is provided, --32bit and --64bit are IGNORED
  • If operation == 'delete':
    • Entry number
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant